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

@@ -74,6 +74,6 @@ func init() {
portableCmd.Flags().BoolVarP(&portableAdvertiseService, "advertise-service", "S", true,
"Advertise SFTP service using multicast DNS")
portableCmd.Flags().BoolVarP(&portableAdvertiseCredentials, "advertise-credentials", "C", false,
"If the service is advertised via multicast DNS this flag allows to put username/password inside the advertised TXT record")
"If the SFTP service is advertised via multicast DNS this flag allows to put username/password inside the advertised TXT record")
rootCmd.AddCommand(portableCmd)
}