Home
last modified time | relevance | path

Searched refs:skelfd (Results 1 – 3 of 3) sorted by relevance

/freebsd/usr.sbin/pw/
H A Dcpdir.c39 copymkdir(int rootfd, char const * dir, int skelfd, mode_t mode, uid_t uid, in copymkdir() argument
60 if (skelfd == -1) in copymkdir()
64 if ((d = fdopendir(skelfd)) == NULL) { in copymkdir()
65 close(skelfd); in copymkdir()
75 if (fstatat(skelfd, p, &st, AT_SYMLINK_NOFOLLOW) == -1) in copymkdir()
82 copymkdir(homefd, p, openat(skelfd, e->d_name, O_DIRECTORY), in copymkdir()
88 (len = readlinkat(skelfd, e->d_name, lnk, sizeof(lnk) -1)) in copymkdir()
99 if ((srcfd = openat(skelfd, e->d_name, O_RDONLY)) == -1) in copymkdir()
H A Dpwupd.h140 void copymkdir(int rootfd, char const * dir, int skelfd, mode_t mode, uid_t uid,
H A Dpw_user.c136 int skelfd = -1; in create_and_populate_homedir() local
144 skelfd = openat(conf.rootfd, skeldir, O_DIRECTORY|O_CLOEXEC); in create_and_populate_homedir()
147 copymkdir(conf.rootfd, pwd->pw_dir, skelfd, homemode, pwd->pw_uid, in create_and_populate_homedir()