summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Steves <stevesk@pobox.com>2001-01-24 20:01:44 +0000
committerKevin Steves <stevesk@pobox.com>2001-01-24 20:01:44 +0000
commitb6b37ba475ef89dadefd00f952a4311101dc2036 (patch)
treedaa81be481427efe26dbb315f472b70c0fce2b28
parent2926586a426bd9f2d227a496b70efd910a85b9de (diff)
- (stevesk) sftp-server.c: fix chmod() mode mask
-rw-r--r--ChangeLog1
-rw-r--r--sftp-server.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a89d4464b..d15dd1d70 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,7 @@
7 - (bal) #ifdef around S_IFSOCK if platform does not support it. 7 - (bal) #ifdef around S_IFSOCK if platform does not support it.
8 patch by Tim Rice <tim@multitalents.net> 8 patch by Tim Rice <tim@multitalents.net>
9 - (bal) fake-regex.h cleanup based on Tim Rice's patch. 9 - (bal) fake-regex.h cleanup based on Tim Rice's patch.
10 - (stevesk) sftp-server.c: fix chmod() mode mask
10 11
1120010123 1220010123
12 - (bal) regexp.h typo in configure.in. Should have been regex.h 13 - (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)
683#ifdef HAVE_FCHMOD 683#ifdef HAVE_FCHMOD
684 ret = fchmod(fd, a->perm & 0777); 684 ret = fchmod(fd, a->perm & 0777);
685#else 685#else
686 ret = chmod(name, a->perm & 077); 686 ret = chmod(name, a->perm & 0777);
687#endif 687#endif
688 if (ret == -1) 688 if (ret == -1)
689 status = errno_to_portable(errno); 689 status = errno_to_portable(errno);