summaryrefslogtreecommitdiffstats
path: root/sftp-server.c
diff options
context:
space:
mode:
authorKevin Steves <stevesk@pobox.com>2001-01-24 21:01:44 +0100
committerKevin Steves <stevesk@pobox.com>2001-01-24 21:01:44 +0100
commitb6b37ba475ef89dadefd00f952a4311101dc2036 (patch)
treedaa81be481427efe26dbb315f472b70c0fce2b28 /sftp-server.c
parentwhitespace sync (diff)
downloadopenssh-b6b37ba475ef89dadefd00f952a4311101dc2036.tar.xz
openssh-b6b37ba475ef89dadefd00f952a4311101dc2036.zip
- (stevesk) sftp-server.c: fix chmod() mode mask
Diffstat (limited to '')
-rw-r--r--sftp-server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sftp-server.c b/sftp-server.c
index b0a8d0d57..92f158801 100644
--- a/sftp-server.c
+++ b/sftp-server.c
@@ -683,7 +683,7 @@ process_fsetstat(void)
#ifdef HAVE_FCHMOD
ret = fchmod(fd, a->perm & 0777);
#else
- ret = chmod(name, a->perm & 077);
+ ret = chmod(name, a->perm & 0777);
#endif
if (ret == -1)
status = errno_to_portable(errno);