Lines Matching refs:stbuf
59 struct stat stbuf;
205 if (stat(dir, &stbuf) >= 0)
210 if (stbuf.st_uid == uid)
213 else if (uid == 0 && stbuf.st_uid == TrustedUid)
219 if (stbuf.st_gid == gid)
225 gr->gr_gid == stbuf.st_gid) ||
226 (gr = getgrgid(stbuf.st_gid)) != NULL))
240 if ((stbuf.st_mode & md) != md)
247 dir, (int) stbuf.st_uid,
248 (unsigned long) stbuf.st_mode,
410 struct stat stbuf;
475 ret = lstat(s, &stbuf);
477 ret = stat(s, &stbuf);
487 if (S_ISLNK(stbuf.st_mode))
592 bitset(S_ISVTX, stbuf.st_mode)) &&
594 bitset(mode, stbuf.st_mode))
598 s, (unsigned long) stbuf.st_mode);
601 if (bitset(S_IWOTH, stbuf.st_mode))
613 bitset(S_IWOTH, stbuf.st_mode)
620 if (bitset(S_IXOTH, stbuf.st_mode))
635 if (stbuf.st_uid == uid &&
636 bitset(S_IXUSR, stbuf.st_mode))
638 if (stbuf.st_gid == gid &&
639 bitset(S_IXGRP, stbuf.st_mode))
643 ((gr != NULL && gr->gr_gid == stbuf.st_gid) ||
644 (gr = getgrgid(stbuf.st_gid)) != NULL))
652 bitset(S_IXGRP, stbuf.st_mode))
656 if (!bitset(S_IXOTH, stbuf.st_mode))