/titanic_44/usr/src/cmd/newgrp/ |
H A D | newgrp.c | 144 if (!*p->pw_shell) { in main() 146 p->pw_shell = shell; in main() 148 p->pw_shell = SHELL; in main() 175 len = strlen(p->pw_shell) + 2; in main() 178 (void) snprintf(shell, len, "-%s", p->pw_shell); in main() 186 shell = p->pw_shell; in main() 188 (void) execl(p->pw_shell, shell, NULL); in main()
|
/titanic_44/usr/src/lib/libc/port/gen/ |
H A D | putpwent.c | 54 p->pw_shell ? p->pw_shell : ""); in putpwent() 61 p->pw_shell); in putpwent()
|
H A D | getpwnam_r.c | 287 passwd->pw_shell = ""; in str2passwd() 394 passwd->pw_shell = p = gettok(&next); in str2passwd()
|
/titanic_44/usr/src/lib/libnisdb/yptol/ |
H A D | shim_changepasswd.c | 120 char *pw_shell; member 184 (!validstr(yppwd.newpw.pw_shell, SHELLSIZE))) { in shim_changepasswd() 659 if ((change_list & CNG_SH) && (!validloginshell(old_ent->pw_shell, in modify_ent() 660 yppwd->newpw.pw_shell, root_on_master))) in modify_ent() 709 if (NULL != old_ent->pw_shell) in modify_ent() 710 sfree(old_ent->pw_shell); in modify_ent() 711 old_ent->pw_shell = strdup(yppwd->newpw.pw_shell); in modify_ent() 712 if (NULL == old_ent->pw_shell) { in modify_ent() 757 if ((NULL != old_ent->pw_shell) && in get_change_list() 759 (strcmp(old_ent->pw_shell, yppwd->newpw.pw_shell) != 0)) { in get_change_list() [all …]
|
/titanic_44/usr/src/cmd/ypcmd/yppasswd/ |
H A D | yppasswdd.c | 568 validloginshell(char *pw_shell, char *arg, int privileged) in validloginshell() argument 573 if (pw_shell == 0 || *pw_shell == '\0') in validloginshell() 574 pw_shell = defshell; in validloginshell() 578 cp = strrchr(pw_shell, '/'); in validloginshell() 582 cp = pw_shell; in validloginshell() 588 pw_shell); in validloginshell() 596 if (strcmp(pw_shell, valid) == 0) in validloginshell() 601 pw_shell); in validloginshell() 650 pw_shell = newshell; in validloginshell()
|
H A D | changepasswd.c | 151 (!validstr(yppwd.newpw.pw_shell, shellsize))) { in changepasswd() 451 if ((!noshell) && (strcmp(opwd.pw_shell, newpw.pw_shell) != 0)) { in changepasswd() 532 yppwd.newpw.pw_shell, in changepasswd() 537 opwd.pw_shell, in changepasswd() 543 !validloginshell(opwd.pw_shell, newpw.pw_shell, root_on_master)) { in changepasswd() 559 opwd.pw_shell = newpw.pw_shell; in changepasswd()
|
H A D | yppasswdxdr.c | 56 if (!xdr_wrapstring(xdrs, &pw->pw_shell)) { in xdr_passwd()
|
/titanic_44/usr/src/lib/passwdutil/ |
H A D | utils.c | 67 if (pw->pw_shell) free(pw->pw_shell); in free_pwd() 108 if (s->pw_shell) { in dup_pw() 109 if (((*d)->pw_shell = strdup(s->pw_shell)) == NULL) in dup_pw()
|
H A D | nis_attr.c | 114 pwd->pw_shell = nis; in nis_to_pwd() 115 if (pwd->pw_shell[0]) in nis_to_pwd() 116 pwd->pw_shell[strlen(pwd->pw_shell)-1] = '\0'; in nis_to_pwd() 223 if ((w->data.val_s = strdup(pw->pw_shell)) == NULL) in nis_getattr() 432 nisbuf->pwd->pw_shell = p->data.val_s; in nis_update()
|
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | in.rexecd.c | 417 if (*pwd->pw_shell == '\0') in doit() 418 pwd->pw_shell = "/bin/sh"; in doit() 434 (void) strncat(shell, pwd->pw_shell, sizeof (shell) - 7); in doit() 456 cp = rindex(pwd->pw_shell, '/'); in doit() 460 cp = pwd->pw_shell; in doit() 461 (void) execle(pwd->pw_shell, cp, "-c", cmdbuf, (char *)0, envinit); in doit() 462 perror(pwd->pw_shell); in doit()
|
H A D | in.rshd.c | 1056 if (*pwd->pw_shell == '\0') in doit() 1057 pwd->pw_shell = "/bin/sh"; in doit() 1123 shell_len = strlen(pwd->pw_shell) + strlen(shellstr) + 1; in doit() 1133 (void) snprintf(shell, shell_len, "%s%s", shellstr, pwd->pw_shell); in doit() 1244 cp = strrchr(pwd->pw_shell, '/'); in doit() 1248 cp = pwd->pw_shell; in doit() 1272 (void) execle(pwd->pw_shell, cp, "-c", (char *)cmdbuf + 3, in doit() 1275 (void) execle(pwd->pw_shell, cp, "-c", cmdbuf, NULL, in doit() 1279 perror(pwd->pw_shell); in doit()
|
/titanic_44/usr/src/cmd/newtask/ |
H A D | newtask.c | 196 if (strcmp(pw->pw_shell, "") == 0) { in main() 198 pw->pw_shell = SHELL; in main() 200 pw->pw_shell = SHELL2; in main() 216 size_t len_shell = strlen(pw->pw_shell) + strlen("SHELL=") + 1; in main() 232 (void) snprintf(env_shell, len_shell, "SHELL=%s", pw->pw_shell); in main() 293 (void) snprintf(shell, PATH_MAX, "-%s", basename(pw->pw_shell)); in main() 295 shell = basename(pw->pw_shell); in main() 305 filename = pw->pw_shell; in main()
|
/titanic_44/usr/src/cmd/cron/ |
H A D | permit.c | 58 if ((strcmp(nptr->pw_shell, SHELL) != 0) && 59 (strcmp(nptr->pw_shell, "") != 0)) {
|
/titanic_44/usr/src/lib/pam_modules/dial_auth/ |
H A D | dial_auth.c | 138 if (pwd.pw_shell != NULL && strcmp(pwd.pw_shell, line) == 0) in pam_sm_authenticate()
|
/titanic_44/usr/src/cmd/login/ |
H A D | login.c | 2121 if (*pwd->pw_shell == '*') { in process_chroot_logins() 2269 if (*pwd->pw_shell == '\0') { in establish_user_environment() 2275 pwd->pw_shell = SHELL; in establish_user_environment() 2277 pwd->pw_shell = SHELL2; in establish_user_environment() 2280 ENVSTRNCAT(shell, pwd->pw_shell); in establish_user_environment() 2477 (void) strlcat(minusnam, basename(pwd->pw_shell), in exec_the_shell() 2483 (void) execl(pwd->pw_shell, minusnam, (char *)0); in exec_the_shell() 2496 if (access(pwd->pw_shell, R_OK|X_OK) == 0) { in exec_the_shell() 2497 (void) execl(SHELL, "sh", pwd->pw_shell, (char *)0); in exec_the_shell() 2498 (void) execl(SHELL2, "sh", pwd->pw_shell, (char *)0); in exec_the_shell()
|
/titanic_44/usr/src/lib/libbc/inc/include/ |
H A D | pwd.h | 46 char *pw_shell; member
|
/titanic_44/usr/src/lib/libbc/inc/5include/ |
H A D | pwd.h | 67 char *pw_shell; member
|
/titanic_44/usr/src/lib/libnsl/yp/ |
H A D | yppasswd_xdr.c | 49 return (xdr_wrapstring(xdrsp, &pw->pw_shell)); in xdr_passwd()
|
/titanic_44/usr/src/lib/libbc/libc/compat/4.1/ |
H A D | getpw.c | 54 strcat(buf, pw->pw_shell); in getpw()
|
/titanic_44/usr/src/lib/libbc/libc/compat/sys5/ |
H A D | getpw.c | 58 strcat(buf, pw->pw_shell); in getpw()
|
/titanic_44/usr/src/cmd/logins/ |
H A D | logins.c | 456 if (!pwent->pw_shell || !(*pwent->pw_shell)) { in adddisp() 459 new->shell = strdup(pwent->pw_shell); in adddisp() 1120 lpw->pw.pw_shell = strdup(pw->pw_shell); in fill_localpw()
|
/titanic_44/usr/src/cmd/oamuser/user/ |
H A D | usermod.c | 138 npw->pw_shell = strcpmalloc(opw->pw_shell); 507 if (strcmp(pstruct->pw_shell, shell) == 0) {
|
/titanic_44/usr/src/lib/libpkg/common/ |
H A D | ncgrpw.c | 568 if (pwd->pw_shell == NULL) { in dup_pw_ent() 573 } else if ((pwd->pw_shell = strdup(pwd->pw_shell)) == NULL) { in dup_pw_ent()
|
/titanic_44/usr/src/head/ |
H A D | pwd.h | 57 char *pw_shell; member
|
/titanic_44/usr/src/cmd/ssh/libssh/common/ |
H A D | misc.c | 177 copy->pw_shell = xstrdup(pw->pw_shell); in pwcopy() 199 xfree(p->pw_shell); in pwfree()
|