sftpgo-mirror/sftpd
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
..
cmd_unix.go add support for Git over SSH 2019-11-26 22:26:42 +01:00
cmd_windows.go add support for Git over SSH 2019-11-26 22:26:42 +01:00
cryptfs_test.go add sftpfs storage backend 2020-12-12 10:31:09 +01:00
handler.go add sftpfs storage backend 2020-12-12 10:31:09 +01:00
internal_test.go sftpd: properly handle listener accept errors 2020-12-23 19:53:07 +01:00
internal_unix_test.go add more linters 2020-05-06 19:36:34 +02:00
lister.go Improve documentation 2019-07-30 20:51:29 +02:00
scp.go fix a potential race condition for pre-login and ext auth 2021-01-05 09:50:22 +01:00
server.go fix a potential race condition for pre-login and ext auth 2021-01-05 09:50:22 +01:00
sftpd.go add support for multiple bindings 2020-12-23 16:12:30 +01:00
sftpd_test.go add support for a basic built-in defender 2021-01-02 14:05:09 +01:00
ssh_cmd.go fix a potential race condition for pre-login and ext auth 2021-01-05 09:50:22 +01:00
subsystem.go update pkg/sftp 2020-11-18 19:06:12 +01:00
transfer.go sftpd: return the error Operation Unsupported for unexpected reads 2020-11-09 21:01:56 +01:00