summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);