- (stevesk) sftp-server.c: fix chmod() mode mask

This commit is contained in:
Kevin Steves 2001-01-24 20:01:44 +00:00
parent 2926586a42
commit b6b37ba475
2 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@
- (bal) #ifdef around S_IFSOCK if platform does not support it.
patch by Tim Rice <tim@multitalents.net>
- (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

View File

@ -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);