Home
last modified time | relevance | path

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

123

/external/openssh/
Dauth-rhosts.c213 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()
Dauth.c404 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()
Dmisc.c226 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()
Dsession.c783 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()
Dssh.c473 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/
Dgenhomedircon.c373 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/
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/openssh/regress/
Dcheck-perm.c94 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/
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/curl/lib/
Dnetrc.c89 home = strdup(pw.pw_dir); in Curl_parsenetrc()
100 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/cpython3/Lib/test/
Dtest_pwd.py25 self.assertEqual(e[5], e.pw_dir)
26 self.assertIsInstance(e.pw_dir, str)
/external/python/cpython2/Lib/test/
Dtest_pwd.py24 self.assertEqual(e[5], e.pw_dir)
25 self.assertIsInstance(e.pw_dir, basestring)
/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.c201 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/tensorflow/tensorflow/tools/graph_transforms/
Dtransform_graph.cc152 home = pw->pw_dir; in ExpandPath()
162 home = pw->pw_dir; in ExpandPath()
/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/python/cpython3/Lib/
Dposixpath.py250 userhome = pwd.getpwuid(os.getuid()).pw_dir
268 userhome = pwent.pw_dir
/external/python/cpython2/Lib/plat-os2emx/
Dpwd.py132 self.pw_gecos, self.pw_dir,

123