sftpd: return sftp.ErrSSHFxNoSuchFile if the client ask the file for a missing path

some clients expected this error and not the generic one if the path is missing
This commit is contained in:
Nicola Murino
2019-11-14 14:18:43 +01:00
parent acdf351047
commit 08e85f6be9
4 changed files with 66 additions and 3 deletions

View File

@@ -314,7 +314,7 @@ Usage:
sftpgo portable [flags]
Flags:
-C, --advertise-credentials If the service is advertised via multicast DNS this flag allows to put username/password inside the advertised TXT record
-C, --advertise-credentials If the SFTP service is advertised via multicast DNS this flag allows to put username/password inside the advertised TXT record
-S, --advertise-service Advertise SFTP service using multicast DNS (default true)
-d, --directory string Path to the directory to serve. This can be an absolute path or a path relative to the current directory (default ".")
-h, --help help for portable