/external/selinux/libsemanage/src/ |
D | genhomedircon.c | 369 int len = strlen(pwbuf->pw_dir) -1; in get_home_dirs() 370 for(; len > 0 && pwbuf->pw_dir[len] == '/'; len--) { in get_home_dirs() 371 pwbuf->pw_dir[len] = '\0'; in get_home_dirs() 373 if (strcmp(pwbuf->pw_dir, "/") == 0) in get_home_dirs() 375 if (ignore(pwbuf->pw_dir)) in get_home_dirs() 377 if (semanage_str_count(pwbuf->pw_dir, '/') <= 1) in get_home_dirs() 379 if (!(path = strdup(pwbuf->pw_dir))) { in get_home_dirs() 398 …ater than %u or its login shell is /sbin/nologin.", pwbuf->pw_name, pwbuf->pw_dir, minuid, maxuid); in get_home_dirs() 1011 int len = strlen(pwent->pw_dir) -1; in add_user() 1012 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/toybox/toys/other/ |
D | login.c | 139 if (chdir(pwd->pw_dir)) printf("bad $HOME: %s\n", pwd->pw_dir); in login_main() 150 setenv("HOME", pwd->pw_dir, 1); in login_main()
|
/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/toybox/toys/lsb/ |
D | su.c | 79 xchdir(up->pw_dir); in su_main() 83 setenv("HOME", up->pw_dir, 1); in su_main()
|
/external/curl/lib/ |
D | netrc.c | 83 home = strdup(pw.pw_dir); in Curl_parsenetrc() 94 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/cpython2/Lib/test/ |
D | test_pwd.py | 24 self.assertEqual(e[5], e.pw_dir) 25 self.assertIsInstance(e.pw_dir, basestring)
|
/external/python/cpython3/Lib/test/ |
D | test_pwd.py | 33 self.assertEqual(e[5], e.pw_dir) 34 self.assertIsInstance(e.pw_dir, str)
|
/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 | 198 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/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/libedit/src/ |
D | filecomplete.c | 127 len = strlen(pass->pw_dir) + 1 + strlen(txt) + 1; in fn_tilde_expand() 131 (void)snprintf(temp, len, "%s/%s", pass->pw_dir, txt); in fn_tilde_expand()
|
/external/python/cpython3/Lib/ |
D | posixpath.py | 247 userhome = pwd.getpwuid(os.getuid()).pw_dir 259 userhome = pwent.pw_dir
|
/external/python/cpython2/Lib/plat-os2emx/ |
D | pwd.py | 132 self.pw_gecos, self.pw_dir,
|
/external/python/cpython2/Modules/ |
D | pwdmodule.c | 83 SETS(setIndex++, p->pw_dir); in mkpwent()
|
/external/python/cpython3/Modules/ |
D | pwdmodule.c | 90 SETS(setIndex++, p->pw_dir); in mkpwent()
|
/external/python/cpython2/Doc/library/ |
D | pwd.rst | 30 | 5 | ``pw_dir`` | User home directory |
|
/external/python/cpython3/Doc/library/ |
D | pwd.rst | 30 | 5 | ``pw_dir`` | User home directory |
|