/external/selinux/libsemanage/src/ |
D | genhomedircon.c | 367 int len = strlen(pwbuf->pw_dir) -1; in get_home_dirs() 368 for(; len > 0 && pwbuf->pw_dir[len] == '/'; len--) { in get_home_dirs() 369 pwbuf->pw_dir[len] = '\0'; in get_home_dirs() 371 if (strcmp(pwbuf->pw_dir, "/") == 0) in get_home_dirs() 373 if (ignore(pwbuf->pw_dir)) in get_home_dirs() 375 if (semanage_str_count(pwbuf->pw_dir, '/') <= 1) in get_home_dirs() 377 if (!(path = strdup(pwbuf->pw_dir))) { in get_home_dirs() 396 …ater than %u or its login shell is /sbin/nologin.", pwbuf->pw_name, pwbuf->pw_dir, minuid, maxuid); in get_home_dirs() 888 int len = strlen(pwent->pw_dir) -1; in get_users() 889 for(; len > 0 && pwent->pw_dir[len] == '/'; len--) { in get_users() [all …]
|
/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 | 441 if (setenv("HOME", pwd->pw_dir, 1)) in do_fork() 445 if (chdir(pwd->pw_dir)) loginfo(LOG_LEVEL9, "chdir(%s)", pwd->pw_dir); in do_fork()
|
D | crontab.c | 297 if (setenv("HOME", pwd->pw_dir, 1)) _exit(1); in do_edit()
|
/external/selinux/policycoreutils/newrole/ |
D | newrole.c | 436 && pw->pw_shell[0] && pw->pw_dir && pw->pw_dir[0])) { in extract_pw_data() 445 pw->pw_dir = strdup(pw->pw_dir); in extract_pw_data() 448 if (!(pw->pw_name && pw->pw_dir && pw->pw_shell)) { in extract_pw_data() 461 free(pw->pw_dir); in extract_pw_data() 522 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/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 | 84 home = strdup(pw.pw_dir); in Curl_parsenetrc() 95 home = pw->pw_dir; in Curl_parsenetrc()
|
D | setup-vms.h | 160 unix_path = vms_translate_path(my_passwd->pw_dir); in vms_getpwuid() 168 if(unix_path == my_passwd->pw_dir) { in vms_getpwuid() 178 vms_passwd_cache.pw_dir = unix_path; in vms_getpwuid()
|
/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/policycoreutils/restorecond/ |
D | utmpwatcher.c | 90 if (asprintf(&path, "%s%s", pwd->pw_dir, file) < 0) in watch_file()
|
D | restorecond.c | 211 homedir = pwd->pw_dir; in main()
|
/external/selinux/policycoreutils/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()
|
D | sandbox | 262 homedir = pwd.getpwuid(os.getuid()).pw_dir
|
/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/ltrace/sysdeps/linux-gnu/ |
D | hooks.c | 107 home = pwd->pw_dir; in os_get_config_dirs()
|
/external/libvncserver/libvncserver/tightvnc-filetransfer/ |
D | handlefiletransferrequest.c | 168 if(pwEnt->pw_dir != NULL) { in GetHomeDir() 169 homedir = strdup (pwEnt->pw_dir); in GetHomeDir()
|
/external/avahi/avahi-daemon/ |
D | glob.c | 405 h = pwd->pw_dir; in globtilde() 418 h = pwd->pw_dir; in globtilde()
|
/external/dbus/tools/ |
D | dbus-launch-x11.c | 78 home = user->pw_dir; in get_homedir()
|
/external/e2fsprogs/e2fsck/ |
D | profile.c | 487 && pw != NULL && pw->pw_dir[0] != 0) in profile_open_file() 488 home_env = pw->pw_dir; in profile_open_file() 493 home_env = pw->pw_dir; in profile_open_file()
|
/external/webrtc/webrtc/base/ |
D | unixfilesystem.cc | 432 homedir = pw->pw_dir; in GetAppDataFolder()
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_platform_limits_posix.h | 339 char *pw_dir; member
|
/external/dbus/dbus/ |
D | dbus-sysdeps-unix.c | 2036 _dbus_assert (p->pw_dir != NULL); in fill_user_info_from_passwd() 2041 info->homedir = _dbus_strdup (p->pw_dir); in fill_user_info_from_passwd()
|