/src/tools/compat/ |
compat_pwd.h | 57 char *pw_shell; member in struct:passwd
|
/src/lib/librpcsvc/ |
yppasswd.x | 51 string pw_shell<>; /* default shell */
|
/src/usr.bin/newgrp/ |
newgrp.c | 137 if (*pwd->pw_shell == '\0') { 141 pwd->pw_shell = shell; 144 pwd->pw_shell = __UNCONST(_PATH_BSHELL); 147 shell = pwd->pw_shell; 184 (void)setenv("SHELL", pwd->pw_shell, 1); 187 (void)strlcpy(sbuf + 1, basename(pwd->pw_shell), 192 (void)execl(pwd->pw_shell, shell, NULL); 193 err(EXIT_FAILURE, "%s", pwd->pw_shell);
|
/src/lib/libc/compat/include/ |
pwd.h | 20 __aconst char *pw_shell; /* default shell */ member in struct:passwd50 36 q->pw_shell = p->pw_shell; 51 q->pw_shell = p->pw_shell;
|
/src/usr.bin/chpass/ |
field.c | 229 if (!(pw->pw_shell = strdup(_PATH_BSHELL))) { 236 if (uid && pw->pw_shell && !ok_shell(pw->pw_shell)) { 237 warnx("%s: current shell non-standard", pw->pw_shell); 248 if (!(pw->pw_shell = strdup(p))) {
|
edit.c | 114 *pw->pw_shell ? pw->pw_shell : _PATH_BSHELL); 117 else if (ok_shell(pw->pw_shell)) 123 *pw->pw_shell ? pw->pw_shell : _PATH_BSHELL); 218 pw->pw_dir, pw->pw_shell) >= (int)sizeof(buf)) {
|
pw_yp.c | 183 yppw.newpw.pw_shell = strdup(pw->pw_shell); 184 if (!yppw.newpw.pw_shell) {
|
/src/usr.bin/login/ |
login_pam.c | 571 if (*pwd->pw_shell == '\0') 572 pwd->pw_shell = __UNCONST(_PATH_BSHELL); 574 shell = login_getcapstr(lc, "shell", pwd->pw_shell, pwd->pw_shell); 576 shell = pwd->pw_shell; 578 if ((pwd->pw_shell = strdup(shell)) == NULL) { 584 (void)setenv("SHELL", pwd->pw_shell, 1); 644 (void)strlcpy(tbuf + 1, (p = strrchr(pwd->pw_shell, '/')) ? 645 p + 1 : pwd->pw_shell, sizeof(tbuf) - 1); 653 execlp(pwd->pw_shell, tbuf, NULL) [all...] |
login.c | 602 if (*pwd->pw_shell == '\0') 603 pwd->pw_shell = __UNCONST(_PATH_BSHELL); 610 pwd->pw_shell = shell; 615 (void)setenv("SHELL", pwd->pw_shell, 1); 689 (void)strlcpy(tbuf + 1, (p = strrchr(pwd->pw_shell, '/')) ? 690 p + 1 : pwd->pw_shell, sizeof(tbuf) - 1); 721 execlp(pwd->pw_shell, tbuf, NULL); 722 err(EXIT_FAILURE, "%s", pwd->pw_shell);
|
/src/libexec/rexecd/ |
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);
|
/src/usr.sbin/rpc.yppasswdd/ |
yppasswdd_mkpw.c | 153 pw.pw_shell = argp->newpw.pw_shell;
|
/src/usr.bin/su/ |
su.c | 197 if (pwd->pw_shell && *pwd->pw_shell) { 198 (void)estrlcpy(shellbuf, pwd->pw_shell, sizeof(shellbuf)); 305 if (chshell(pwd->pw_shell) == 0 && ruid) 307 } else if (pwd->pw_shell && *pwd->pw_shell) { 308 shell = pwd->pw_shell;
|
su_pam.c | 191 if (pwd->pw_shell && *pwd->pw_shell) { 192 (void)estrlcpy(shellbuf, pwd->pw_shell, sizeof(shellbuf)); 318 if (chshell(pwd->pw_shell) == 0 && ruid) 321 } else if (pwd->pw_shell && *pwd->pw_shell) { 322 shell = pwd->pw_shell;
|
/src/libexec/rshd/ |
rshd.c | 654 if (*pwd->pw_shell == '\0') 655 pwd->pw_shell = __UNCONST(_PATH_BSHELL); 658 (void)pam_setenv(pamh, "SHELL", pwd->pw_shell, 1); 672 pwd->pw_shell = sh; 682 setenv("SHELL", pwd->pw_shell, 1); 686 cp = strrchr(pwd->pw_shell, '/'); 690 cp = pwd->pw_shell; 708 (void)execl(pwd->pw_shell, cp, "-c", cmdbuf, NULL); 709 rshd_errx(EXIT_FAILURE, "%s: %s", pwd->pw_shell, strerror(errno));
|
/src/lib/libc/compat/gen/ |
compat_getpwent.c | 92 q->pw_shell = p->pw_shell;
|
/src/lib/libc/gen/ |
pw_scan.c | 215 if (!(pw->pw_shell = strsep(&bp, ":"))) /* shell */ 219 p = pw->pw_shell;
|
/src/include/ |
pwd.h | 116 __aconst char *pw_shell; /* default shell */ member in struct:passwd
|
/src/lib/libpam/modules/pam_unix/ |
pam_unix.c | 309 if ((yppwd.newpw.pw_shell = strdup(pwd->pw_shell)) == NULL) 345 if (yppwd.newpw.pw_shell != NULL) 346 free(yppwd.newpw.pw_shell);
|
/src/dist/pf/usr.sbin/authpf/ |
authpf.c | 136 shell = login_getcapstr(lc, "shell", pw->pw_shell, 137 pw->pw_shell); 139 shell = pw->pw_shell; 146 if (shell != pw->pw_shell) 151 if (shell != pw->pw_shell)
|
/src/usr.sbin/rpc.pcnfsd/ |
pcnfsd_misc.c | 160 if (!strcmp(ushell, localp.pw_shell)) { 172 ushell = localp.pw_shell;
|
/src/usr.bin/passwd/ |
yp_passwd.c | 164 ypp->newpw.pw_shell = estrdup(pw->pw_shell);
|
/src/lib/libutil/ |
passwd.c | 334 if (strcmp( pw->pw_shell, buf_pw.pw_shell) != 0) 359 pw->pw_gecos, pw->pw_dir, pw->pw_shell);
|
/src/distrib/utils/libhack/ |
getpwent.c | 276 if (!(pwd->pw_shell = strsep(&bp, ":\n"))) /* shell */
|
/src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/ |
sanitizer_platform_limits_openbsd.h | 160 char *pw_shell; member in struct:__sanitizer::__sanitizer_passwd
|
sanitizer_platform_limits_solaris.h | 151 char *pw_shell; member in struct:__sanitizer::__sanitizer_passwd
|