Home
last modified time | relevance | path

Searched refs:pw_dir (Results 1 – 25 of 35) sorted by relevance

12

/external/selinux/libsemanage/src/
Dgenhomedircon.c367 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/
Dlogin.c139 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/
Duseradd.c67 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;
Duserdel.c110 char *arg[] = {"rm", "-fr", pwd->pw_dir, NULL, NULL}; in userdel_main()
Dcrond.c441 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()
Dcrontab.c297 if (setenv("HOME", pwd->pw_dir, 1)) _exit(1); in do_edit()
/external/selinux/policycoreutils/newrole/
Dnewrole.c436 && 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/
Dsu.c79 xchdir(up->pw_dir); in su_main()
83 setenv("HOME", up->pw_dir, 1); in su_main()
/external/curl/lib/
Dnetrc.c84 home = strdup(pw.pw_dir); in Curl_parsenetrc()
95 home = pw->pw_dir; in Curl_parsenetrc()
Dsetup-vms.h160 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/
Dpwd.h17 char *pw_dir; member
/external/curl/src/
Dtool_homedir.c80 home = pw->pw_dir; in homedir()
/external/selinux/policycoreutils/restorecond/
Dutmpwatcher.c90 if (asprintf(&path, "%s%s", pwd->pw_dir, file) < 0) in watch_file()
Drestorecond.c211 homedir = pwd->pw_dir; in main()
/external/selinux/policycoreutils/sandbox/
Dseunshare.c770 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()
Dsandbox262 homedir = pwd.getpwuid(os.getuid()).pw_dir
/external/libedit/src/
Dfilecomplete.c127 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/
Dhooks.c107 home = pwd->pw_dir; in os_get_config_dirs()
/external/libvncserver/libvncserver/tightvnc-filetransfer/
Dhandlefiletransferrequest.c168 if(pwEnt->pw_dir != NULL) { in GetHomeDir()
169 homedir = strdup (pwEnt->pw_dir); in GetHomeDir()
/external/avahi/avahi-daemon/
Dglob.c405 h = pwd->pw_dir; in globtilde()
418 h = pwd->pw_dir; in globtilde()
/external/dbus/tools/
Ddbus-launch-x11.c78 home = user->pw_dir; in get_homedir()
/external/e2fsprogs/e2fsck/
Dprofile.c487 && 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/
Dunixfilesystem.cc432 homedir = pw->pw_dir; in GetAppDataFolder()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_platform_limits_posix.h339 char *pw_dir; member
/external/dbus/dbus/
Ddbus-sysdeps-unix.c2036 _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()

12