- (stevesk) sftp-server.c: fix chmod() mode mask
This commit is contained in:
parent
2926586a42
commit
b6b37ba475
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue