/external/openssh/ |
D | auth-rhosts.c | 213 pw->pw_dir, rhosts_files[rhosts_file_index]); in auth_rhosts2() 256 if (stat(pw->pw_dir, &st) < 0) { in auth_rhosts2() 258 "no home directory %.200s", pw->pw_name, pw->pw_dir); in auth_rhosts2() 260 "no home directory %.200s", pw->pw_name, pw->pw_dir); in auth_rhosts2() 280 pw->pw_dir, rhosts_files[rhosts_file_index]); in auth_rhosts2()
|
D | auth.c | 404 file = percent_expand(filename, "h", pw->pw_dir, in expand_authorized_keys() 414 i = snprintf(ret, sizeof(ret), "%s/%s", pw->pw_dir, file); in expand_authorized_keys() 489 auth_secure_path(const char *name, struct stat *stp, const char *pw_dir, in auth_secure_path() argument 502 if (pw_dir != NULL && realpath(pw_dir, homedir) != NULL) in auth_secure_path() 573 return auth_secure_path(file, &st, pw->pw_dir, pw->pw_uid, err, errlen); in secure_filename() 808 fake.pw_dir = "/nonexist"; in fakepw()
|
D | misc.c | 226 copy->pw_dir = xstrdup(pw->pw_dir); in pwcopy() 611 len = strlen(pw->pw_dir); in tilde_expand_filename() 612 if (len == 0 || pw->pw_dir[len - 1] != '/') in tilde_expand_filename() 621 if (xasprintf(&ret, "%s%s%s", pw->pw_dir, sep, filename) >= PATH_MAX) in tilde_expand_filename()
|
D | session.c | 783 snprintf(buf, sizeof(buf), "%.200s/.hushlogin", pw->pw_dir); in check_quietlogin() 1025 child_set_env(&env, &envsize, "HOME", pw->pw_dir); in do_setup_env() 1156 strcmp(pw->pw_dir, "/") ? pw->pw_dir : ""); in do_setup_env() 1373 chroot_path = percent_expand(tmp, "h", pw->pw_dir, in do_setusercontext() 1593 if (k_afs_cell_of_file(pw->pw_dir, cell, sizeof(cell)) == 0) in do_child() 1598 s->authctxt->krb5_fwd_ccache, NULL, NULL, pw->pw_dir); in do_child() 1603 if (chdir(pw->pw_dir) < 0) { in do_child() 1610 "directory %s: %s\n", pw->pw_dir, in do_child()
|
D | ssh.c | 473 r = snprintf(buf, sizeof buf, "%s/%s", pw->pw_dir, in process_config_files() 1204 "d", pw->pw_dir, in main() 1376 r = snprintf(buf, sizeof buf, "%s%s%s", pw->pw_dir, in main() 1377 strcmp(pw->pw_dir, "/") ? "/" : "", _PATH_SSH_USER_DIR); in main() 1401 cp = percent_expand(p, "d", pw->pw_dir, in main() 2083 pwdir = xstrdup(pw->pw_dir); in load_public_identity_files()
|
/external/selinux/libsemanage/src/ |
D | genhomedircon.c | 373 int len = strlen(pwbuf->pw_dir) -1; in get_home_dirs() 374 for(; len > 0 && pwbuf->pw_dir[len] == '/'; len--) { in get_home_dirs() 375 pwbuf->pw_dir[len] = '\0'; in get_home_dirs() 377 if (strcmp(pwbuf->pw_dir, "/") == 0) in get_home_dirs() 379 if (ignore(pwbuf->pw_dir)) in get_home_dirs() 381 if (semanage_str_count(pwbuf->pw_dir, '/') <= 1) in get_home_dirs() 383 if (!(path = strdup(pwbuf->pw_dir))) { in get_home_dirs() 402 …ater than %u or its login shell is /sbin/nologin.", pwbuf->pw_name, pwbuf->pw_dir, minuid, maxuid); in get_home_dirs() 1018 int len = strlen(pwent->pw_dir) -1; in add_user() 1019 for(; len > 0 && pwent->pw_dir[len] == '/'; len--) { in add_user() [all …]
|
/external/selinux/policycoreutils/newrole/ |
D | newrole.c | 432 && pw->pw_shell[0] && pw->pw_dir && pw->pw_dir[0])) { in extract_pw_data() 441 pw->pw_dir = strdup(pw->pw_dir); in extract_pw_data() 444 if (!(pw->pw_name && pw->pw_dir && pw->pw_shell)) { in extract_pw_data() 457 free(pw->pw_dir); in extract_pw_data() 460 pw->pw_dir = NULL; in extract_pw_data() 521 rc |= setenv("HOME", pw->pw_dir, 1); in restore_environment() 1239 free(pw.pw_dir); in main() 1357 free(pw.pw_dir); in main()
|
/external/openssh/regress/ |
D | check-perm.c | 94 auth_secure_path(const char *name, struct stat *stp, const char *pw_dir, in auth_secure_path() argument 107 if (pw_dir != NULL && realpath(pw_dir, homedir) != NULL) in auth_secure_path()
|
/external/toybox/toys/pending/ |
D | useradd.c | 67 pwd.pw_dir = TT.dir ? TT.dir : xmprintf("/home/%s", *toys.optargs); 120 (long)pwd.pw_uid, (long)pwd.pw_gid, pwd.pw_gecos, pwd.pw_dir, 135 char *skel = "/etc/skel", *p = pwd.pw_dir;
|
D | userdel.c | 110 char *arg[] = {"rm", "-fr", pwd->pw_dir, NULL, NULL}; in userdel_main()
|
D | crond.c | 442 if (setenv("HOME", pwd->pw_dir, 1)) in do_fork() 446 if (chdir(pwd->pw_dir)) loginfo(LOG_LEVEL9, "chdir(%s)", pwd->pw_dir); in do_fork()
|
/external/curl/lib/ |
D | netrc.c | 89 home = strdup(pw.pw_dir); in Curl_parsenetrc() 100 home = pw->pw_dir; in Curl_parsenetrc()
|
D | setup-vms.h | 161 unix_path = vms_translate_path(my_passwd->pw_dir); in vms_getpwuid() 169 if(unix_path == my_passwd->pw_dir) { in vms_getpwuid() 179 vms_passwd_cache.pw_dir = unix_path; in vms_getpwuid()
|
/external/python/cpython3/Lib/test/ |
D | test_pwd.py | 25 self.assertEqual(e[5], e.pw_dir) 26 self.assertIsInstance(e.pw_dir, str)
|
/external/python/cpython2/Lib/test/ |
D | test_pwd.py | 24 self.assertEqual(e[5], e.pw_dir) 25 self.assertIsInstance(e.pw_dir, basestring)
|
/external/e2fsprogs/include/mingw/ |
D | pwd.h | 15 char *pw_dir; member
|
/external/e2fsprogs/include/nonunix/ |
D | pwd.h | 17 char *pw_dir; member
|
/external/curl/src/ |
D | tool_homedir.c | 80 home = pw->pw_dir; in homedir()
|
/external/selinux/restorecond/ |
D | utmpwatcher.c | 90 if (asprintf(&path, "%s%s", pwd->pw_dir, file) < 0) in watch_file()
|
D | restorecond.c | 201 homedir = pwd->pw_dir; in main()
|
/external/python/cpython2/Lib/ |
D | posixpath.py | 262 userhome = pwd.getpwuid(os.getuid()).pw_dir 271 userhome = pwent.pw_dir
|
/external/tensorflow/tensorflow/tools/graph_transforms/ |
D | transform_graph.cc | 152 home = pw->pw_dir; in ExpandPath() 162 home = pw->pw_dir; in ExpandPath()
|
/external/selinux/sandbox/ |
D | seunshare.c | 770 resolved_path = realpath(pwd->pw_dir,NULL); in main() 819 rc |= setenv("HOME", pwd->pw_dir, 1); in main() 829 if (chdir(pwd->pw_dir)) { in main()
|
/external/python/cpython3/Lib/ |
D | posixpath.py | 250 userhome = pwd.getpwuid(os.getuid()).pw_dir 268 userhome = pwent.pw_dir
|
/external/python/cpython2/Lib/plat-os2emx/ |
D | pwd.py | 132 self.pw_gecos, self.pw_dir,
|