Home
last modified time | relevance | path

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

1234

/titanic_41/usr/src/cmd/ssh/libssh/common/
H A Dtildexpand.c37 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 Dputpwent.c53 p->pw_dir ? p->pw_dir : "", in putpwent()
60 p->pw_dir, in putpwent()
H A Dgetpwnam_r.c286 passwd->pw_dir = ""; in str2passwd()
386 passwd->pw_dir = p = gettok(&next); in str2passwd()
/titanic_41/usr/src/lib/passwdutil/
H A Dutils.c66 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 Dnis_attr.c113 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 Dauth-rhosts.c192 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 Dauth.c408 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 Dhomedir.c273 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 Duserdel.c156 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 Dusermod.c137 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 Dssh.c226 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 Dsh.file.c339 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 Dpassmgmt.c341 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 Dpwd.h45 char *pw_dir; member
/titanic_41/usr/src/lib/libnisdb/yptol/
H A Dshim_changepasswd.c119 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 Dpwd.h66 char *pw_dir; member
/titanic_41/usr/src/cmd/newgrp/
H A Dnewgrp.c132 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 Dnlps_serv.c755 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 Dyppasswd_xdr.c47 if (!xdr_wrapstring(xdrsp, &pw->pw_dir)) in xdr_passwd()
/titanic_41/usr/src/lib/libbc/libc/compat/4.1/
H A Dgetpw.c52 strcat(buf, pw->pw_dir); in getpw()
/titanic_41/usr/src/cmd/ypcmd/yppasswd/
H A Dyppasswdxdr.c53 if (!xdr_wrapstring(xdrs, &pw->pw_dir)) { in xdr_passwd()
/titanic_41/usr/src/cmd/bnu/
H A Dgetpwinfo.c94 (void) strcpy(path, pwd->pw_dir);
/titanic_41/usr/src/lib/libbc/libc/compat/sys5/
H A Dgetpw.c56 strcat(buf, pw->pw_dir); in getpw()
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/
H A Dfinger.c491 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 Dsetupfiles.c116 (void) strlcpy(home, pwd->pw_dir, MAXPATHLEN); in __setupfiles()
147 zoneroot, pwd->pw_dir); in __setupfiles()

1234