about sftp-server.c from CVS 25 jan 2001

Roumen Petrov roumen.petrov at skalasoft.com
Thu Jan 25 19:27:12 EST 2001


diff :
...
-                       ret = chmod(name, a->perm & 077);
+                       ret = chmod(name, a->perm & 0777);

slackware has in sys/stat.h
.....
# define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO) /* 0777 */
.....

idea:
add to defines.h lines like this:
#ifndef ACCESSPERMS
# define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO) /* 0777 */
#endif

pleace use in authfile.c and sftp-server.c this define instead of 0777 !






More information about the openssh-unix-dev mailing list