sftpgo/cmd
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
..
gen.go cmd: add shell completion and man pages generators 2020-07-08 23:21:33 +02:00
gencompletion.go update cobra to v1.1.1 2020-10-18 21:52:42 +02:00
genman.go document FreeBSD support 2020-07-10 19:20:37 +02:00
initprovider.go revertprovider: crypted provider was not supported in v4 2020-12-06 10:36:48 +01:00
install_windows.go fix build on Windows 2020-12-18 16:22:52 +01:00
portable.go mutal TLS: add support for revocation lists 2021-01-03 17:03:04 +01:00
portable_disabled.go add build tag to disable metrics 2020-06-19 17:08:51 +02:00
reload_windows.go Allow to rotate logs on demand 2020-06-22 19:11:53 +02:00
revertprovider.go revertprovider: crypted provider was not supported in v4 2020-12-06 10:36:48 +01:00
root.go telemetry server: add optional https and authentication 2020-12-18 16:04:42 +01:00
rotatelogs_windows.go improve help strings formatting 2020-07-09 18:58:22 +02:00
serve.go telemetry server: add optional https and authentication 2020-12-18 16:04:42 +01:00
service_windows.go improve help strings formatting 2020-07-09 18:58:22 +02:00
start_windows.go fix build on Windows 2020-12-18 16:22:52 +01:00
startsubsys.go fix a potential race condition for pre-login and ext auth 2021-01-05 09:50:22 +01:00
status_windows.go return exit code 1 on error 2020-06-20 14:30:46 +02:00
stop_windows.go return exit code 1 on error 2020-06-20 14:30:46 +02:00
uninstall_windows.go return exit code 1 on error 2020-06-20 14:30:46 +02:00