From b6b37ba475ef89dadefd00f952a4311101dc2036 Mon Sep 17 00:00:00 2001 From: Kevin Steves Date: Wed, 24 Jan 2001 20:01:44 +0000 Subject: - (stevesk) sftp-server.c: fix chmod() mode mask --- ChangeLog | 1 + sftp-server.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a89d4464b..d15dd1d70 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,7 @@ - (bal) #ifdef around S_IFSOCK if platform does not support it. patch by Tim Rice - (bal) fake-regex.h cleanup based on Tim Rice's patch. + - (stevesk) sftp-server.c: fix chmod() mode mask 20010123 - (bal) regexp.h typo in configure.in. Should have been regex.h 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); -- cgit v1.2.3