Searched refs:pw_dir (Results 1 - 25 of 108) sorted by relevance

12345

/freebsd-11-stable/usr.sbin/rpc.yppasswdd/
H A Dyppasswd_private.x50 string pw_dir<>; /* home directory */
/freebsd-11-stable/lib/libpam/modules/pam_chroot/
H A Dpam_chroot.c64 if (pwd->pw_dir == NULL)
66 if ((end = strstr(pwd->pw_dir, "/./")) != NULL) {
68 (int)(end - pwd->pw_dir), pwd->pw_dir) > (int)sizeof(buf)) {
/freebsd-11-stable/contrib/nvi/ex/
H A Dex_cd.c64 pw->pw_dir == NULL || pw->pw_dir[0] == '\0') {
69 dir = pw->pw_dir;
/freebsd-11-stable/include/rpcsvc/
H A Dyppasswd.x63 string pw_dir<>; /* home directory */
/freebsd-11-stable/crypto/openssh/
H A Dauth-rhosts.c213 pw->pw_dir, rhosts_files[rhosts_file_index]);
256 if (stat(pw->pw_dir, &st) < 0) {
258 "no home directory %.200s", pw->pw_name, pw->pw_dir);
260 "no home directory %.200s", pw->pw_name, pw->pw_dir);
280 pw->pw_dir, rhosts_files[rhosts_file_index]);
/freebsd-11-stable/contrib/openbsm/bin/auditdistd/
H A Dsandbox.c137 jailst.path = pw->pw_dir;
144 "Unable to jail to directory %s", pw->pw_dir);
152 if (chroot(pw->pw_dir) == -1) {
155 pw->pw_dir);
/freebsd-11-stable/contrib/amd/amd/
H A Dinfo_passwd.c122 dir = xstrdup(pw->pw_dir);
175 dir+1, rhost, user, pw->pw_dir, p);
/freebsd-11-stable/release/picobsd/tinyware/passwd/
H A Dpw_copy.c79 && strcmp(pw->pw_dir, buf_pw.pw_dir) == 0
149 pw->pw_gecos, pw->pw_dir, pw->pw_shell);
170 pw->pw_gecos, pw->pw_dir, pw->pw_shell);
280 if (!(pw->pw_dir = strsep(&bp, ":"))) /* directory */
282 if(pw->pw_dir[0]) pw->pw_fields |= _PWF_DIR;
/freebsd-11-stable/usr.sbin/nscd/agents/
H A Dpasswd.c64 if (pwd->pw_dir != NULL)
65 desired_size += strlen(pwd->pw_dir) + 1;
110 if (new_pwd.pw_dir != NULL) {
111 size = strlen(new_pwd.pw_dir);
112 memcpy(p, new_pwd.pw_dir, size);
113 new_pwd.pw_dir = p;
/freebsd-11-stable/lib/libc/tests/nss/
H A Dgetpw_test.c93 if (src->pw_dir != NULL)
94 dest->pw_dir = strdup(src->pw_dir);
117 strcmp(pwd1->pw_dir, pwd2->pw_dir) != 0 ||
131 free(pwd->pw_dir);
141 pwd->pw_dir, pwd->pw_shell, (uintmax_t)pwd->pw_expire,
205 pwd->pw_dir = strdup(s);
206 ATF_REQUIRE(pwd->pw_dir != NULL);
279 if (pwd->pw_dir
[all...]
/freebsd-11-stable/contrib/opie/
H A Dopiesu.c160 if (!(thisuser.pw_dir = malloc(strlen(pwd->pw_dir) + 1)))
162 strcpy(thisuser.pw_dir, pwd->pw_dir);
376 if (!opiealways(thisuser.pw_dir)) {
482 lsetenv("HOME", thisuser.pw_dir, homebuf);
495 if (chdir(thisuser.pw_dir) < 0) {
/freebsd-11-stable/crypto/openssh/regress/
H A Dcheck-perm.c94 auth_secure_path(const char *name, struct stat *stp, const char *pw_dir, argument
107 if (pw_dir != NULL && realpath(pw_dir, homedir) != NULL)
/freebsd-11-stable/usr.sbin/jexec/
H A Djexec.c131 setenv("HOME", pwd->pw_dir, 1);
134 if (clean && chdir(pwd->pw_dir) < 0)
135 err(1, "chdir: %s", pwd->pw_dir);
/freebsd-11-stable/lib/libc/gen/
H A Dpw_scan.c82 pwd->pw_dir = nul;
197 if (!(pw->pw_dir = strsep(&bp, ":"))) /* directory */
199 if (pw->pw_dir[0])
/freebsd-11-stable/lib/libypclnt/
H A Dypclnt_passwd.c159 (yppwd.newpw.pw_dir = strdup(pwd->pw_dir)) == NULL ||
227 free(yppwd.newpw.pw_dir);
251 (yppwd.newpw.pw_dir = strdup(pwd->pw_dir)) == NULL ||
306 free(yppwd.newpw.pw_dir);
/freebsd-11-stable/contrib/apr/user/unix/
H A Duserinfo.c82 *dirname = apr_pstrcat(p, pw.pw_dir, pw.pw_name, NULL);
84 *dirname = apr_pstrdup(p, pw.pw_dir);
/freebsd-11-stable/crypto/heimdal/appl/login/
H A Dlogin.c211 char *pw_dir; local
220 pw_dir = pwd->pw_dir;
227 if(k_afs_cell_of_file(pw_dir, cell, sizeof(cell)) == 0)
229 cell, NULL, pwd->pw_uid, pwd->pw_dir);
231 pwd->pw_uid, pwd->pw_dir);
460 home_dir = pwd->pw_dir;
462 fprintf(stderr, "No home directory \"%s\"!\n", pwd->pw_dir);
/freebsd-11-stable/contrib/nvi/common/
H A Dutil.c176 h = pwd->pw_dir;
188 h = pwd->pw_dir;
/freebsd-11-stable/usr.bin/calendar/
H A Dcalendar.c212 if (!chdir(pw->pw_dir)) {
213 setenv("HOME", pw->pw_dir, 1);
/freebsd-11-stable/lib/libpam/modules/pam_opieaccess/
H A Dpam_opieaccess.c79 opiealways(pwent->pw_dir) != 0)
/freebsd-11-stable/sbin/hastd/
H A Dsubr.c186 jailst.path = pw->pw_dir;
204 "Unable to jail to directory to %s", pw->pw_dir);
205 if (chroot(pw->pw_dir) == -1) {
208 pw->pw_dir);
/freebsd-11-stable/lib/libutil/
H A Dpw_util.c390 strcmp(pw1->pw_dir, pw2->pw_dir) == 0 &&
405 pw->pw_gecos, pw->pw_dir, pw->pw_shell);
419 pw->pw_gecos, pw->pw_dir, pw->pw_shell);
619 if (pw->pw_dir != NULL)
620 len += strlen(pw->pw_dir) + 1;
643 if (pw->pw_dir != NULL) {
644 npw->pw_dir = dst;
645 dst = stpcpy(npw->pw_dir, pw->pw_dir)
[all...]
/freebsd-11-stable/contrib/amd/hlfsd/
H A Dhomedir.c54 static char pw_name[16], pw_dir[128]; variable
445 passwd_ent.pw_dir = (char *) &pw_dir;
489 pw_name[0] = pw_dir[0] = '\0';
529 /* pw_dir will show up in passwd_ent.pw_dir */
530 xstrlcpy(pw_dir, cp, sizeof(pw_dir));
535 passwd_ent.pw_name, (long) passwd_ent.pw_uid, passwd_ent.pw_dir);
556 table_add(pent_p->pw_uid, pent_p->pw_dir, pent_
[all...]
/freebsd-11-stable/crypto/heimdal/appl/su/
H A Dsu.c114 free (p->pw_dir);
131 info->pw_dir = strdup(pwd->pw_dir);
134 info->pw_dir == NULL || info->pw_shell == NULL) {
466 if (chdir (su_info->pw_dir) < 0)
471 esetenv("HOME", su_info->pw_dir, 1);
/freebsd-11-stable/include/
H A Dpwd.h120 char *pw_dir; /* home directory */ member in struct:passwd

Completed in 355 milliseconds

12345