Searched refs:pw_shell (Results 1 - 25 of 54) sorted by relevance

123

/netbsd-6-1-5-RELEASE/gnu/dist/gettext/djgpp/
H A Dgetpwnam.c32 rv.pw_shell = getenv("SHELL");
33 if (rv.pw_shell == 0)
34 rv.pw_shell = getenv("COMSPEC");
35 if (rv.pw_shell == 0)
36 rv.pw_shell = shell;
H A Ddjpwd.h31 char * pw_shell; /* Shell program. */ member in struct:passwd
/netbsd-6-1-5-RELEASE/sys/compat/ibcs2/
H A Dibcs2_pwd.h45 char *pw_shell; member in struct:ibcs2_passwd
/netbsd-6-1-5-RELEASE/external/ibm-public/postfix/dist/src/global/
H A Dmypwd.h27 char *pw_shell; member in struct:mypasswd
H A Dmypwd.c96 mypwd->pw_shell = mystrdup(*pwd->pw_shell ? pwd->pw_shell : _PATH_BSHELL);
189 myfree(mypwd->pw_shell);
/netbsd-6-1-5-RELEASE/tools/compat/
H A Dcompat_pwd.h57 char *pw_shell; member in struct:passwd
/netbsd-6-1-5-RELEASE/lib/librpcsvc/
H A Dyppasswd.x51 string pw_shell<>; /* default shell */
/netbsd-6-1-5-RELEASE/usr.bin/newgrp/
H A Dnewgrp.c137 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);
/netbsd-6-1-5-RELEASE/external/bsd/cron/dist/
H A Dpw_dup.c94 if (pw->pw_shell) {
95 ssize = strlen(pw->pw_shell) + 1;
136 if (pw->pw_shell) {
137 (void)memcpy(cp, pw->pw_shell, ssize);
138 newpw->pw_shell = cp;
/netbsd-6-1-5-RELEASE/lib/libc/compat/include/
H A Dpwd.h20 __aconst char *pw_shell; /* default shell */ member in struct:passwd50
36 q->pw_shell = p->pw_shell;
51 q->pw_shell = p->pw_shell;
/netbsd-6-1-5-RELEASE/usr.bin/chpass/
H A Dfield.c229 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))) {
H A Dedit.c114 *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);
217 pw->pw_dir, pw->pw_shell) >= (int)sizeof(buf)) {
H A Dpw_yp.c183 yppw.newpw.pw_shell = strdup(pw->pw_shell);
184 if (!yppw.newpw.pw_shell) {
/netbsd-6-1-5-RELEASE/gnu/dist/gettext/gettext-tools/misc/
H A Dcvsuser.c37 pw.pw_shell = "/bin/sh";
/netbsd-6-1-5-RELEASE/usr.bin/login/
H A Dlogin_pam.c570 if (*pwd->pw_shell == '\0')
571 pwd->pw_shell = __UNCONST(_PATH_BSHELL);
573 shell = login_getcapstr(lc, "shell", pwd->pw_shell, pwd->pw_shell);
575 shell = pwd->pw_shell;
577 if ((pwd->pw_shell = strdup(shell)) == NULL) {
583 (void)setenv("SHELL", pwd->pw_shell, 1);
643 (void)strlcpy(tbuf + 1, (p = strrchr(pwd->pw_shell, '/')) ?
644 p + 1 : pwd->pw_shell, sizeof(tbuf) - 1);
652 execlp(pwd->pw_shell, tbu
[all...]
H A Dlogin.c594 if (*pwd->pw_shell == '\0')
595 pwd->pw_shell = __UNCONST(_PATH_BSHELL);
602 pwd->pw_shell = shell;
607 (void)setenv("SHELL", pwd->pw_shell, 1);
684 (void)strlcpy(tbuf + 1, (p = strrchr(pwd->pw_shell, '/')) ?
685 p + 1 : pwd->pw_shell, sizeof(tbuf) - 1);
716 execlp(pwd->pw_shell, tbuf, NULL);
717 err(EXIT_FAILURE, "%s", pwd->pw_shell);
/netbsd-6-1-5-RELEASE/libexec/rexecd/
H A 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-6-1-5-RELEASE/usr.sbin/rpc.yppasswdd/
H A Dyppasswdd_mkpw.c153 pw.pw_shell = argp->newpw.pw_shell;
/netbsd-6-1-5-RELEASE/external/bsd/libbind/dist/irs/
H A 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;
/netbsd-6-1-5-RELEASE/usr.bin/su/
H A Dsu.c192 if (pwd->pw_shell && *pwd->pw_shell) {
193 (void)estrlcpy(shellbuf, pwd->pw_shell, sizeof(shellbuf));
298 if (chshell(pwd->pw_shell) == 0 && ruid)
300 } else if (pwd->pw_shell && *pwd->pw_shell) {
301 shell = pwd->pw_shell;
H A Dsu_pam.c179 if (pwd->pw_shell && *pwd->pw_shell) {
180 (void)estrlcpy(shellbuf, pwd->pw_shell, sizeof(shellbuf));
305 if (chshell(pwd->pw_shell) == 0 && ruid)
308 } else if (pwd->pw_shell && *pwd->pw_shell) {
309 shell = pwd->pw_shell;
/netbsd-6-1-5-RELEASE/libexec/rshd/
H A Drshd.c644 if (*pwd->pw_shell == '\0')
645 pwd->pw_shell = __UNCONST(_PATH_BSHELL);
648 (void)pam_setenv(pamh, "SHELL", pwd->pw_shell, 1);
662 pwd->pw_shell = sh;
672 setenv("SHELL", pwd->pw_shell, 1);
676 cp = strrchr(pwd->pw_shell, '/');
680 cp = pwd->pw_shell;
698 (void)execl(pwd->pw_shell, cp, "-c", cmdbuf, NULL);
699 rshd_errx(EXIT_FAILURE, "%s: %s", pwd->pw_shell, strerror(errno));
/netbsd-6-1-5-RELEASE/lib/libc/compat/gen/
H A Dcompat_getpwent.c92 q->pw_shell = p->pw_shell;
/netbsd-6-1-5-RELEASE/lib/libc/gen/
H A Dpw_scan.c215 if (!(pw->pw_shell = strsep(&bp, ":"))) /* shell */
219 p = pw->pw_shell;
/netbsd-6-1-5-RELEASE/include/
H A Dpwd.h116 __aconst char *pw_shell; /* default shell */ member in struct:passwd

Completed in 159 milliseconds

123