Searched refs:rootfd (Results 1 - 5 of 5) sorted by relevance
/freebsd-11.0-release/usr.sbin/pw/ |
H A D | rm_r.c | 42 rm_r(int rootfd, const char *path, uid_t uid) argument 52 dirfd = openat(rootfd, path, O_DIRECTORY); 70 if (fstatat(rootfd, path, &st, AT_SYMLINK_NOFOLLOW) != 0) 72 unlinkat(rootfd, path, S_ISDIR(st.st_mode) ? AT_REMOVEDIR : 0);
|
H A D | cpdir.c | 42 copymkdir(int rootfd, char const * dir, int skelfd, mode_t mode, uid_t uid, argument 55 if (mkdirat(rootfd, dir, mode) != 0 && errno != EEXIST) { 59 fchownat(rootfd, dir, uid, gid, AT_SYMLINK_NOFOLLOW); 61 chflagsat(rootfd, dir, flags, AT_SYMLINK_NOFOLLOW); 66 homefd = openat(rootfd, dir, O_DIRECTORY);
|
H A D | pwupd.h | 87 int rootfd; member in struct:pwconf 147 void copymkdir(int rootfd, char const * dir, int skelfd, mode_t mode, uid_t uid, 149 void rm_r(int rootfd, char const * dir, uid_t uid);
|
H A D | pw.c | 192 conf.rootfd = open(conf.rootdir, O_DIRECTORY|O_CLOEXEC); 193 if (conf.rootfd == -1)
|
H A D | pw_user.c | 157 mkdir_home_parents(conf.rootfd, pwd->pw_dir); 162 skelfd = openat(conf.rootfd, skeldir, O_DIRECTORY|O_CLOEXEC); 165 copymkdir(conf.rootfd, pwd->pw_dir, skelfd, homemode, pwd->pw_uid, 715 if ((fd = openat(conf.rootfd, "etc/opiekeys", O_RDWR)) == -1) 1006 unlinkat(conf.rootfd, file + 1, 0); 1015 fstatat(conf.rootfd, home + 1, &st, 0) != -1) { 1016 rm_r(conf.rootfd, home, id); 1019 fstatat(conf.rootfd, home + 1, &st, 0) == -1 ? "" : "not " 1249 if (fstatat(conf.rootfd, walk, &st, 0) == -1) 1441 close(openat(conf.rootfd, pat [all...] |
Completed in 108 milliseconds