sftpd: document chmod/chown on Windows

chmod is partially supported and chown is not supported on Windows.

Skip unsupported test cases on Windows
This commit is contained in:
Nicola Murino
2019-11-15 17:09:00 +01:00
parent 3ac5af47f2
commit fc442d7862
3 changed files with 66 additions and 11 deletions

View File

@@ -229,7 +229,7 @@ func (c Connection) Filelist(request *sftp.Request) (sftp.ListerAt, error) {
return nil, sftp.ErrSSHFxPermissionDenied
}
c.Log(logger.LevelDebug, logSender, "requested Stat for file: %#v", p)
c.Log(logger.LevelDebug, logSender, "requested stat for file: %#v", p)
s, err := os.Stat(p)
if err != nil {
c.Log(logger.LevelWarn, logSender, "error running Stat on file: %#v", err)