Home
last modified time | relevance | path

Searched refs:pw_shell (Results 1 – 25 of 53) sorted by relevance

123

/netbsd/src/usr.bin/newgrp/
Dnewgrp.c137 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/
Dpw_dup.c94 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/
Dpwd.h20 __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/
Dfield.c229 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()
Dedit.c114 *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()
Dpw_yp.c183 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/
Dlogin_pam.c571 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()
Dlogin.c602 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/
Drexecd.c321 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/
Dsu.c197 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()
Dsu_pam.c191 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/
Drshd.c654 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/
Dmypwd.c150 mypwd->pw_shell = mystrdup(*pwd->pw_shell ? pwd->pw_shell : _PATH_BSHELL); in mypwenter()
312 myfree(mypwd->pw_shell); in mypwfree()
Dmypwd.h27 char *pw_shell; member
/netbsd/src/external/bsd/libbind/dist/irs/
Dgetpwent_r.c215 len += strlen(pw->pw_shell) + 1;
267 n = strlen(pw->pw_shell) + 1;
268 strcpy(cp, pw->pw_shell);
269 pwptr->pw_shell = cp;
Dirp_pw.c337 if (pw->pw_shell != NULL) in free_passwd()
338 free(pw->pw_shell); in free_passwd()
/netbsd/src/usr.sbin/rpc.yppasswdd/
Dyppasswdd_mkpw.c153 pw.pw_shell = argp->newpw.pw_shell; in make_passwd()
/netbsd/src/dist/pf/usr.sbin/authpf/
Dauthpf.c136 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/
Dcompat_getpwent.c92 q->pw_shell = p->pw_shell; in __weak_alias()
/netbsd/src/crypto/external/bsd/heimdal/dist/lib/roken/
Dgetxxyyy.c82 APPEND(pw_shell); in copypw()
151 printf("%s\n", p->pw_shell); in print_result()
/netbsd/src/lib/libpam/modules/pam_unix/
Dpam_unix.c309 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/
Dpw_scan.c215 if (!(pw->pw_shell = strsep(&bp, ":"))) /* shell */ in __pw_scan()
219 p = pw->pw_shell; in __pw_scan()
/netbsd/src/tools/compat/
Dcompat_pwd.h57 char *pw_shell; member
/netbsd/src/lib/librpcsvc/
Dyppasswd.x51 string pw_shell<>; /* default shell */ member
/netbsd/src/lib/libutil/
Dpasswd.c334 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()

123