search for: u_mask

Displaying 1 result from an estimated 1 matches for "u_mask".

Did you mean: _mask
2001 Feb 21
1
sftp-server and chown
...* notably SSH Communications' Windows client 2.2.0) ! * send bogus bits (world-writable) which is not really ! * acceptable... ! * <appro at fy.chalmers.se> ! */ ! static mode_t u_mask = (mode_t)-1; ! ! if (u_mask == (mode_t)-1) ! if ((u_mask=umask(022)) != 022) umask(u_mask); ! ! ret = chmod(name, a->perm & ~u_mask & 0777); if (ret == -1) status = errno_to_portable(errno);...