Home
last modified time | relevance | path

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

12

/external/selinux/libsemanage/src/
Dgenhomedircon.c369 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/
Dnewrole.c432 && 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/
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.c442 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/
Dsu.c79 xchdir(up->pw_dir); in su_main()
83 setenv("HOME", up->pw_dir, 1); in su_main()
/external/curl/lib/
Dnetrc.c83 home = strdup(pw.pw_dir); in Curl_parsenetrc()
94 home = pw->pw_dir; in Curl_parsenetrc()
Dsetup-vms.h161 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/
Dtest_pwd.py24 self.assertEqual(e[5], e.pw_dir)
25 self.assertIsInstance(e.pw_dir, basestring)
/external/python/cpython3/Lib/test/
Dtest_pwd.py33 self.assertEqual(e[5], e.pw_dir)
34 self.assertIsInstance(e.pw_dir, str)
/external/e2fsprogs/include/mingw/
Dpwd.h15 char *pw_dir; member
/external/e2fsprogs/include/nonunix/
Dpwd.h17 char *pw_dir; member
/external/curl/src/
Dtool_homedir.c80 home = pw->pw_dir; in homedir()
/external/selinux/restorecond/
Dutmpwatcher.c90 if (asprintf(&path, "%s%s", pwd->pw_dir, file) < 0) in watch_file()
Drestorecond.c198 homedir = pwd->pw_dir; in main()
/external/python/cpython2/Lib/
Dposixpath.py262 userhome = pwd.getpwuid(os.getuid()).pw_dir
271 userhome = pwent.pw_dir
/external/selinux/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()
/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/python/cpython3/Lib/
Dposixpath.py247 userhome = pwd.getpwuid(os.getuid()).pw_dir
259 userhome = pwent.pw_dir
/external/python/cpython2/Lib/plat-os2emx/
Dpwd.py132 self.pw_gecos, self.pw_dir,
/external/python/cpython2/Modules/
Dpwdmodule.c83 SETS(setIndex++, p->pw_dir); in mkpwent()
/external/python/cpython3/Modules/
Dpwdmodule.c90 SETS(setIndex++, p->pw_dir); in mkpwent()
/external/python/cpython2/Doc/library/
Dpwd.rst30 | 5 | ``pw_dir`` | User home directory |
/external/python/cpython3/Doc/library/
Dpwd.rst30 | 5 | ``pw_dir`` | User home directory |

12