Lines Matching refs:mode
1395 chg_mode(char *target, uid_t uid, gid_t gid, mode_t mode)
1400 /* Don't change mode if target is symlink */
1412 if (mode & (S_ISUID | S_ISGID)) {
1414 mode &= ~S_ISUID & ~S_ISGID;
1418 if (chmod(target, mode) != 0) {
1471 mode_t fixmode = (mode_t)0; /* cleanup mode after copy */
1637 mode_t mode;
1668 gettext("%s: failed to set file mode"
1783 mode = FMODE(s3);
1795 if (mode & (S_ISUID | S_ISGID)) {
1797 mode &= ~S_ISUID & ~S_ISGID;
1812 if (fchmod(targattrfd, mode) != 0) {