Lines Matching refs:mode

55  * d o owner -> newowner pathname [mode]
294 int modelen; /* number of mode bytes (3 or 4); */
295 int mode; /* the complete file mode */
311 line->modelen, line->mode, line->owner, line->rest);
318 * third the class, the fourth the mode, when appropriate.
383 * [ <mode> <owner> <group> .... ]
404 * At this point, we could have no mode because we are
422 case 'p': /* FIFO - assume mode is sensible, don't treat as file */
445 * the mode is either a 4 digit number (file is sticky/set-uid or
446 * set-gid or the mode has a leading 0) or a three digit number
447 * mode has all the mode bits, mode points to the three least
448 * significant bit so fthe mode
450 parse->mode = 0;
454 "Warning: Unparseble mode \"%.*s\" at %s:%d\n",
458 parse->mode <<= 3;
459 parse->mode += *q - '0';
555 if (dosu && line.type == 'f' && (line.mode & (S_ISUID|S_ISGID)))
556 mode_diff = line.mode & (S_IRGRP|S_IROTH);
573 if (doowner && !(line.mode & S_ISUID) &&
575 ((!(line.mode & S_IWUSR) &&
576 (line.mode&(S_IRGRP|S_IROTH)) == (S_IRGRP|S_IROTH)) ||
577 (line.type == 'f' && (line.mode & S_IXOTH)) ||
578 ((line.mode & 07) == ((line.mode>>3) & 07) &&
579 (line.mode & 07) == ((line.mode>>6) & 07) &&
584 ((line.mode & 05) == ((line.mode>>3) & 05) ||
585 (line.mode & 0100) &&
587 ((line.mode & 0105) != 0 ||
598 line.path, line.modelen, line.mode);
610 (line.mode & (S_IWUSR|S_IXUSR)) == (S_IWUSR|S_IXUSR))
614 if (domodes && (line.mode & (S_IWGRP|S_IWOTH)) != 0 &&
615 (line.mode & S_ISVTX) == 0) {
632 mode_diff |= line.mode & (S_IWGRP|S_IWOTH);
636 int oldmode = line.mode;
638 line.mode &= ~mode_diff;
640 if (line.mode != oldmode) {
648 oldmode, line.mode, basedir,
660 line.mode | mode_diff, line.old_owner, line.group,
663 line.mode, line.owner, line.group, basedir,