| /netbsd/src/usr.bin/newgrp/ |
| D | newgrp.c | 137 if (*pwd->pw_shell == '\0') { in main() 141 pwd->pw_shell = shell; in main() 144 pwd->pw_shell = __UNCONST(_PATH_BSHELL); in main() 147 shell = pwd->pw_shell; in main() 184 (void)setenv("SHELL", pwd->pw_shell, 1); in main() 187 (void)strlcpy(sbuf + 1, basename(pwd->pw_shell), in main() 192 (void)execl(pwd->pw_shell, shell, NULL); in main() 193 err(EXIT_FAILURE, "%s", pwd->pw_shell); in main()
|
| /netbsd/src/external/bsd/cron/dist/ |
| D | pw_dup.c | 94 if (pw->pw_shell) { in pw_dup() 95 ssize = strlen(pw->pw_shell) + 1; in pw_dup() 136 if (pw->pw_shell) { in pw_dup() 137 (void)memcpy(cp, pw->pw_shell, ssize); in pw_dup() 138 newpw->pw_shell = cp; in pw_dup()
|
| /netbsd/src/lib/libc/compat/include/ |
| D | pwd.h | 20 __aconst char *pw_shell; /* default shell */ member 36 q->pw_shell = p->pw_shell; in passwd_to_passwd50() 51 q->pw_shell = p->pw_shell; in passwd50_to_passwd()
|
| /netbsd/src/usr.bin/chpass/ |
| D | field.c | 229 if (!(pw->pw_shell = strdup(_PATH_BSHELL))) { in p_shell() 236 if (uid && pw->pw_shell && !ok_shell(pw->pw_shell)) { in p_shell() 237 warnx("%s: current shell non-standard", pw->pw_shell); in p_shell() 248 if (!(pw->pw_shell = strdup(p))) { in p_shell()
|
| D | edit.c | 114 *pw->pw_shell ? pw->pw_shell : _PATH_BSHELL); in display() 117 else if (ok_shell(pw->pw_shell)) in display() 123 *pw->pw_shell ? pw->pw_shell : _PATH_BSHELL); in display() 218 pw->pw_dir, pw->pw_shell) >= (int)sizeof(buf)) { in verify()
|
| D | pw_yp.c | 183 yppw.newpw.pw_shell = strdup(pw->pw_shell); in pw_yp() 184 if (!yppw.newpw.pw_shell) { in pw_yp()
|
| /netbsd/src/usr.bin/login/ |
| D | login_pam.c | 571 if (*pwd->pw_shell == '\0') in main() 572 pwd->pw_shell = __UNCONST(_PATH_BSHELL); in main() 574 shell = login_getcapstr(lc, "shell", pwd->pw_shell, pwd->pw_shell); in main() 576 shell = pwd->pw_shell; in main() 578 if ((pwd->pw_shell = strdup(shell)) == NULL) { in main() 584 (void)setenv("SHELL", pwd->pw_shell, 1); in main() 644 (void)strlcpy(tbuf + 1, (p = strrchr(pwd->pw_shell, '/')) ? in main() 645 p + 1 : pwd->pw_shell, sizeof(tbuf) - 1); in main() 653 execlp(pwd->pw_shell, tbuf, NULL); in main() 654 err(EXIT_FAILURE, "%s", pwd->pw_shell); in main()
|
| D | login.c | 602 if (*pwd->pw_shell == '\0') in main() 603 pwd->pw_shell = __UNCONST(_PATH_BSHELL); in main() 610 pwd->pw_shell = shell; in main() 615 (void)setenv("SHELL", pwd->pw_shell, 1); in main() 689 (void)strlcpy(tbuf + 1, (p = strrchr(pwd->pw_shell, '/')) ? in main() 690 p + 1 : pwd->pw_shell, sizeof(tbuf) - 1); in main() 721 execlp(pwd->pw_shell, tbuf, NULL); in main() 722 err(EXIT_FAILURE, "%s", pwd->pw_shell); in main()
|
| /netbsd/src/libexec/rexecd/ |
| D | rexecd.c | 321 if (*pwd->pw_shell == '\0') 322 pwd->pw_shell = __UNCONST(_PATH_BSHELL); 343 (void)pam_setenv(pamh, "SHELL", pwd->pw_shell, 1); 359 (void)strlcat(shell, pwd->pw_shell, sizeof(shell)); 364 cp = strrchr(pwd->pw_shell, '/'); 368 cp = pwd->pw_shell; 371 (void)execl(pwd->pw_shell, cp, "-c", cmdbuf, NULL); 374 err(EXIT_FAILURE, "%s", pwd->pw_shell);
|
| /netbsd/src/usr.bin/su/ |
| D | su.c | 197 if (pwd->pw_shell && *pwd->pw_shell) { in main() 198 (void)estrlcpy(shellbuf, pwd->pw_shell, sizeof(shellbuf)); in main() 305 if (chshell(pwd->pw_shell) == 0 && ruid) in main() 307 } else if (pwd->pw_shell && *pwd->pw_shell) { in main() 308 shell = pwd->pw_shell; in main()
|
| D | su_pam.c | 191 if (pwd->pw_shell && *pwd->pw_shell) { in main() 192 (void)estrlcpy(shellbuf, pwd->pw_shell, sizeof(shellbuf)); in main() 318 if (chshell(pwd->pw_shell) == 0 && ruid) in main() 321 } else if (pwd->pw_shell && *pwd->pw_shell) { in main() 322 shell = pwd->pw_shell; in main()
|
| /netbsd/src/libexec/rshd/ |
| D | rshd.c | 654 if (*pwd->pw_shell == '\0') in doit() 655 pwd->pw_shell = __UNCONST(_PATH_BSHELL); in doit() 658 (void)pam_setenv(pamh, "SHELL", pwd->pw_shell, 1); in doit() 672 pwd->pw_shell = sh; in doit() 682 setenv("SHELL", pwd->pw_shell, 1); in doit() 686 cp = strrchr(pwd->pw_shell, '/'); in doit() 690 cp = pwd->pw_shell; in doit() 708 (void)execl(pwd->pw_shell, cp, "-c", cmdbuf, NULL); in doit() 709 rshd_errx(EXIT_FAILURE, "%s: %s", pwd->pw_shell, strerror(errno)); in doit()
|
| /netbsd/src/external/ibm-public/postfix/dist/src/global/ |
| D | mypwd.c | 150 mypwd->pw_shell = mystrdup(*pwd->pw_shell ? pwd->pw_shell : _PATH_BSHELL); in mypwenter() 312 myfree(mypwd->pw_shell); in mypwfree()
|
| D | mypwd.h | 27 char *pw_shell; member
|
| /netbsd/src/external/bsd/libbind/dist/irs/ |
| D | getpwent_r.c | 215 len += strlen(pw->pw_shell) + 1; 267 n = strlen(pw->pw_shell) + 1; 268 strcpy(cp, pw->pw_shell); 269 pwptr->pw_shell = cp;
|
| D | irp_pw.c | 337 if (pw->pw_shell != NULL) in free_passwd() 338 free(pw->pw_shell); in free_passwd()
|
| /netbsd/src/usr.sbin/rpc.yppasswdd/ |
| D | yppasswdd_mkpw.c | 153 pw.pw_shell = argp->newpw.pw_shell; in make_passwd()
|
| /netbsd/src/dist/pf/usr.sbin/authpf/ |
| D | authpf.c | 136 shell = login_getcapstr(lc, "shell", pw->pw_shell, in main() 137 pw->pw_shell); in main() 139 shell = pw->pw_shell; in main() 146 if (shell != pw->pw_shell) in main() 151 if (shell != pw->pw_shell) in main()
|
| /netbsd/src/lib/libc/compat/gen/ |
| D | compat_getpwent.c | 92 q->pw_shell = p->pw_shell; in __weak_alias()
|
| /netbsd/src/crypto/external/bsd/heimdal/dist/lib/roken/ |
| D | getxxyyy.c | 82 APPEND(pw_shell); in copypw() 151 printf("%s\n", p->pw_shell); in print_result()
|
| /netbsd/src/lib/libpam/modules/pam_unix/ |
| D | pam_unix.c | 309 if ((yppwd.newpw.pw_shell = strdup(pwd->pw_shell)) == NULL) in yp_set_password() 345 if (yppwd.newpw.pw_shell != NULL) in yp_set_password() 346 free(yppwd.newpw.pw_shell); in yp_set_password()
|
| /netbsd/src/lib/libc/gen/ |
| D | pw_scan.c | 215 if (!(pw->pw_shell = strsep(&bp, ":"))) /* shell */ in __pw_scan() 219 p = pw->pw_shell; in __pw_scan()
|
| /netbsd/src/tools/compat/ |
| D | compat_pwd.h | 57 char *pw_shell; member
|
| /netbsd/src/lib/librpcsvc/ |
| D | yppasswd.x | 51 string pw_shell<>; /* default shell */ member
|
| /netbsd/src/lib/libutil/ |
| D | passwd.c | 334 if (strcmp( pw->pw_shell, buf_pw.pw_shell) != 0) in pw_equal() 359 pw->pw_gecos, pw->pw_dir, pw->pw_shell); in pw_print()
|