Lines Matching defs:stbuf
942 static int check_perm(const char **mntp, struct stat *stbuf, int *mountpoint_fd)
950 res = lstat(mnt, stbuf);
961 if (S_ISDIR(stbuf->st_mode)) {
970 res = lstat(mnt, stbuf);
978 if ((stbuf->st_mode & S_ISVTX) && stbuf->st_uid != getuid()) {
990 } else if (S_ISREG(stbuf->st_mode)) {
998 res = fstat(*mountpoint_fd, stbuf);
1005 if (!S_ISREG(stbuf->st_mode)) {
1133 struct stat stbuf;
1154 res = check_perm(&real_mnt, &stbuf, &mountpoint_fd);
1157 res = do_mount(real_mnt, type, stbuf.st_mode & S_IFMT,