/titanic_41/usr/src/cmd/ssh/libssh/common/ |
H A D | tildexpand.c | 37 char *pw_dir; in tilde_expand_filename() local 71 if ((pw_dir = getenv("HOME")) == NULL) { in tilde_expand_filename() 76 pw_dir = pw->pw_dir; in tilde_expand_filename() 82 return (xstrdup(pw_dir)); in tilde_expand_filename() 86 len = strlen(pw_dir) + strlen(cp + 1) + 2; in tilde_expand_filename() 92 snprintf(expanded, len, "%s%s%s", pw_dir, in tilde_expand_filename() 93 strcmp(pw_dir, "/") ? "/" : "", cp + 1); in tilde_expand_filename()
|
/titanic_41/usr/src/lib/libc/port/gen/ |
H A D | putpwent.c | 53 p->pw_dir ? p->pw_dir : "", in putpwent() 60 p->pw_dir, in putpwent()
|
H A D | getpwnam_r.c | 286 passwd->pw_dir = ""; in str2passwd() 386 passwd->pw_dir = p = gettok(&next); in str2passwd()
|
/titanic_41/usr/src/lib/passwdutil/ |
H A D | utils.c | 66 if (pw->pw_dir) free(pw->pw_dir); in free_pwd() 104 if (s->pw_dir) { in dup_pw() 105 if (((*d)->pw_dir = strdup(s->pw_dir)) == NULL) in dup_pw()
|
H A D | nis_attr.c | 113 pwd->pw_dir = strsep(&nis, ":"); in nis_to_pwd() 219 if ((w->data.val_s = strdup(pw->pw_dir)) == NULL) in nis_getattr() 429 nisbuf->pwd->pw_dir = p->data.val_s; in nis_update()
|
/titanic_41/usr/src/cmd/ssh/sshd/ |
H A D | auth-rhosts.c | 192 pw->pw_dir, rhosts_files[rhosts_file_index]); in auth_rhosts2_raw() 224 if (stat(pw->pw_dir, &st) < 0) { in auth_rhosts2_raw() 226 "no home directory %.200s", pw->pw_name, pw->pw_dir); in auth_rhosts2_raw() 228 "no home directory %.200s", pw->pw_name, pw->pw_dir); in auth_rhosts2_raw() 248 pw->pw_dir, rhosts_files[rhosts_file_index]); in auth_rhosts2_raw()
|
H A D | auth.c | 408 buffer_append(&buffer, pw->pw_dir, strlen(pw->pw_dir)); in expand_filename() 429 snprintf(file, MAXPATHLEN, "%s/%s", pw->pw_dir, cp); in expand_filename() 528 if (realpath(pw->pw_dir, homedir) != NULL) in secure_filename()
|
/titanic_41/usr/src/lib/libtecla/common/ |
H A D | homedir.c | 273 home_dir = home->pwd.pw_dir; in _hd_lookup_home_dir() 289 home_dir = pwd->pw_dir; in _hd_lookup_home_dir() 371 waserr = callback_fn(data, pwd->pw_name, pwd->pw_dir, 380 waserr = callback_fn(data, pwd->pw_name, pwd->pw_dir, 406 waserr = callback_fn(data, pwd->pw_name, pwd->pw_dir,
|
/titanic_41/usr/src/cmd/oamuser/user/ |
H A D | userdel.c | 156 if( stat( pstruct->pw_dir, &statbuf ) ) { in main() 164 errmsg( M_NO_PERM, logname, pstruct->pw_dir ); in main() 168 if( rm_files(pstruct->pw_dir, logname) != EX_SUCCESS ) in main()
|
H A D | usermod.c | 137 npw->pw_dir = strcpmalloc(opw->pw_dir); 477 if (strcmp(pstruct->pw_dir, dir) == 0) { 496 ret = move_dir(pstruct->pw_dir, dir, logname);
|
/titanic_41/usr/src/cmd/ssh/ssh/ |
H A D | ssh.c | 226 char *p, *cp, buf[256], *pw_name, *pw_dir; local 273 if ((pw_dir = getenv("HOME")) == NULL) { 290 pw_dir = xstrdup(pw_dir); 294 pw_dir = xstrdup(pw->pw_dir); 611 snprintf(buf, sizeof buf, "%.100s/%.100s", pw_dir, 725 snprintf(buf, sizeof buf, "%.100s%s%.100s", pw_dir, 726 strcmp(pw_dir, "/") ? "/" : "", _PATH_SSH_USER_DIR); 727 xfree(pw_dir);
|
/titanic_41/usr/src/cmd/csh/ |
H A D | sh.file.c | 339 tchar *pw_dir; /* work */ in tilde() local 356 pw_dir = strtots((tchar *)NULL, pw->pw_dir); /* allocate */ in tilde() 357 (void) strcpy_(new, pw_dir); in tilde() 358 xfree(pw_dir); /* free it */ in tilde()
|
/titanic_41/usr/src/cmd/passmgmt/ |
H A D | passmgmt.c | 341 passwd_st.pw_dir = nullstr; /* no default directory */ in main() 465 passwd_st.pw_dir = optarg; in main() 632 if ((passwd_st.pw_dir = malloc((size_t)DIR_SIZE)) == NULL) in main() 635 *passwd_st.pw_dir = '\0'; in main() 636 (void) strcat(passwd_st.pw_dir, defdir); in main() 637 (void) strcat(passwd_st.pw_dir, lognamp); in main() 924 pw_ptr1p->pw_dir = passwd_st.pw_dir; in main() 1618 (int)strlen(pwp->pw_dir) + in ck_p_sz()
|
/titanic_41/usr/src/lib/libbc/inc/include/ |
H A D | pwd.h | 45 char *pw_dir; member
|
/titanic_41/usr/src/lib/libnisdb/yptol/ |
H A D | shim_changepasswd.c | 119 char *pw_dir; member 855 if (NULL == (p = get_next_token(p, &(pwd->pw_dir), str_end))) in decode_pwd_entry() 949 if (NULL != pwd->pw_dir) in free_pwd_entry() 950 sfree(pwd->pw_dir); in free_pwd_entry() 995 len += strlen(pwd->pw_dir) + 1; in create_pwd_str() 1023 strcat(s, pwd->pw_dir); in create_pwd_str() 1085 old_passwd->pw_dir = NULL; in get_old_info()
|
/titanic_41/usr/src/lib/libbc/inc/5include/ |
H A D | pwd.h | 66 char *pw_dir; member
|
/titanic_41/usr/src/cmd/newgrp/ |
H A D | newgrp.c | 132 len = strlen(p->pw_dir) + 1; in main() 135 (void) strncpy(dir, p->pw_dir, len); in main()
|
/titanic_41/usr/src/cmd/listen/ |
H A D | nlps_serv.c | 755 if (chdir(pwdp->pw_dir)) { in exec_cmd() 756 sprintf(msgbuf, "NLPS: Cannot chdir to %s", pwdp->pw_dir); in exec_cmd() 763 sprintf(homeenv, "HOME=%s", pwdp->pw_dir); in exec_cmd() 764 DEBUG((9,"HOME=%s", pwdp->pw_dir)); in exec_cmd()
|
/titanic_41/usr/src/lib/libnsl/yp/ |
H A D | yppasswd_xdr.c | 47 if (!xdr_wrapstring(xdrsp, &pw->pw_dir)) in xdr_passwd()
|
/titanic_41/usr/src/lib/libbc/libc/compat/4.1/ |
H A D | getpw.c | 52 strcat(buf, pw->pw_dir); in getpw()
|
/titanic_41/usr/src/cmd/ypcmd/yppasswd/ |
H A D | yppasswdxdr.c | 53 if (!xdr_wrapstring(xdrs, &pw->pw_dir)) { in xdr_passwd()
|
/titanic_41/usr/src/cmd/bnu/ |
H A D | getpwinfo.c | 94 (void) strcpy(path, pwd->pw_dir);
|
/titanic_41/usr/src/lib/libbc/libc/compat/sys5/ |
H A D | getpw.c | 56 strcat(buf, pw->pw_dir); in getpw()
|
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/ |
H A D | finger.c | 491 s = malloc(strlen(p->pwd->pw_dir) + in print() 494 (void) strcpy(s, p->pwd->pw_dir); in print() 510 s = malloc(strlen(p->pwd->pw_dir) + in print() 513 (void) strcpy(s, p->pwd->pw_dir); in print() 546 pto->pw_dir = strdup(pfrom->pw_dir); in pwdcopy() 651 (void) printf("\nDirectory: %-25s", pers->pwd->pw_dir); in personprint()
|
/titanic_41/usr/src/cmd/tsol/updatehome/ |
H A D | setupfiles.c | 116 (void) strlcpy(home, pwd->pw_dir, MAXPATHLEN); in __setupfiles() 147 zoneroot, pwd->pw_dir); in __setupfiles()
|