sftpgo-mirror/service
Nicola Murino daac90c4e1
fix a potential race condition for pre-login and ext auth
hooks

doing something like this:

err = provider.updateUser(u)
...
return provider.userExists(username)

could be racy if another update happen before

provider.userExists(username)

also pass a pointer to updateUser so if the user is modified inside
"validateUser" we can just return the modified user without do a new
query
2021-01-05 09:50:22 +01:00
..
service.go fix a potential race condition for pre-login and ext auth 2021-01-05 09:50:22 +01:00
service_portable.go fix a potential race condition for pre-login and ext auth 2021-01-05 09:50:22 +01:00
service_windows.go defender: allow hot-reloading for safe and block lists 2021-01-04 17:52:14 +01:00
sighup_unix.go defender: allow hot-reloading for safe and block lists 2021-01-04 17:52:14 +01:00
sighup_windows.go Allow to rotate logs on demand 2020-06-22 19:11:53 +02:00
sigusr1_unix.go Allow to rotate logs on demand 2020-06-22 19:11:53 +02:00
sigusr1_windows.go Allow to rotate logs on demand 2020-06-22 19:11:53 +02:00