diff options
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | sftp-server.c | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -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 | ||
11 | 20010123 | 12 | 20010123 |
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); |