Home
last modified time | relevance | path

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

/original-bsd/libexec/rexecd/
H A Drexecd.c183 if (*pwd->pw_shell == '\0')
184 pwd->pw_shell = _PATH_BSHELL;
193 strncat(shell, pwd->pw_shell, sizeof(shell)-7);
195 cp = strrchr(pwd->pw_shell, '/');
199 cp = pwd->pw_shell;
200 execl(pwd->pw_shell, cp, "-c", cmdbuf, 0);
201 perror(pwd->pw_shell);
/original-bsd/usr.bin/chpass/
H A Dedit.c84 *pw->pw_shell ? pw->pw_shell : _PATH_BSHELL);
87 else if (ok_shell(pw->pw_shell))
93 *pw->pw_shell ? pw->pw_shell : _PATH_BSHELL);
182 pw->pw_shell) >= sizeof(buf)) {
H A Dfield.c221 pw->pw_shell = _PATH_BSHELL;
225 if (uid && pw->pw_shell && !ok_shell(pw->pw_shell)) {
226 warnx("%s: current shell non-standard", pw->pw_shell);
237 if (!(pw->pw_shell = strdup(p))) {
H A Dpw_copy.c67 pw->pw_dir, pw->pw_shell);
76 pw->pw_dir, pw->pw_shell);
/original-bsd/old/athena/ksu/
H A Dksu.c151 if (pwd->pw_shell && *pwd->pw_shell)
152 shell = strcpy(shellbuf, pwd->pw_shell);
262 if (!chshell(pwd->pw_shell) && ruid) {
270 if (pwd->pw_shell && *pwd->pw_shell) {
271 shell = pwd->pw_shell;
/original-bsd/usr.bin/su/
H A Dsu.c111 if (pwd->pw_shell && *pwd->pw_shell)
112 shell = strcpy(shellbuf, pwd->pw_shell);
156 if (!chshell(pwd->pw_shell) && ruid)
158 } else if (pwd->pw_shell && *pwd->pw_shell) {
159 shell = pwd->pw_shell;
/original-bsd/usr.sbin/pwd_mkdb/
H A Dpw_scan.c77 if (!(pw->pw_shell = strsep(&bp, ":"))) /* shell */
80 p = pw->pw_shell;
H A Dpwd_mkdb.c163 COMPACT(pwd.pw_shell);
194 pwd.pw_dir, pwd.pw_shell);
226 COMPACT(pwd.pw_shell);
/original-bsd/usr.bin/login/
H A Dlogin.c327 if (*pwd->pw_shell == '\0')
328 pwd->pw_shell = _PATH_BSHELL;
334 (void)setenv("SHELL", pwd->pw_shell, 1);
381 (void)strcpy(tbuf + 1, (p = strrchr(pwd->pw_shell, '/')) ?
382 p + 1 : pwd->pw_shell);
393 execlp(pwd->pw_shell, tbuf, 0);
394 err(1, "%s", pwd->pw_shell);
H A Dlogin.c.1383 if (*pwd->pw_shell == '\0')
384 pwd->pw_shell = BSHELL;
386 else if (!strcmp(pwd->pw_shell, "/bin/csh")) {
395 (void)setenv("SHELL", pwd->pw_shell, 1);
427 strcpy(tbuf + 1, (p = rindex(pwd->pw_shell, '/')) ?
428 p + 1 : pwd->pw_shell);
429 execlp(pwd->pw_shell, tbuf, 0);
431 perror(pwd->pw_shell);
/original-bsd/old/mkpasswd/
H A Dmkpasswd.c122 COMPACT(_pw_passwd.pw_shell);
147 _pw_passwd.pw_dir, _pw_passwd.pw_shell);
219 _pw_passwd.pw_shell = strsep(&bp, ":\n"); in scanpw()
/original-bsd/libexec/rshd/
H A Drshd.c617 if (*pwd->pw_shell == '\0')
618 pwd->pw_shell = _PATH_BSHELL;
629 strncat(shell, pwd->pw_shell, sizeof(shell)-7);
631 cp = strrchr(pwd->pw_shell, '/');
635 cp = pwd->pw_shell;
649 execl(pwd->pw_shell, cp, "-c", cmdbuf, 0);
650 perror(pwd->pw_shell);
/original-bsd/include/
H A Dpwd.h47 char *pw_shell; /* default shell */ member
/original-bsd/lib/libc/gen/
H A Dgetpwnamuid.c53 EXPAND(pw_shell);
H A Dgetpwent.c171 EXPAND(_pw_passwd.pw_shell);
/original-bsd/old/berknet/
H A Dmach.h414 char *pw_shell; member
H A Dmach.c380 passwd.pw_shell = p; in getpwent()
H A Dsub.c76 u = pwd->pw_shell; in passwdent()
H A Dnetdaemon.c821 strcpy(status.loginshell,pwd->pw_shell);
/original-bsd/libexec/uucpd/
H A Duucpd.c152 if (strcmp(pw->pw_shell, _PATH_UUCICO)) {
/original-bsd/libexec/ftpd/
H A Dftpd.c357 free(save.pw_shell);
364 save.pw_shell = sgetsave(p->pw_shell);
414 if ((shell = pw->pw_shell) == NULL || *shell == 0)
/original-bsd/usr.bin/finger/
H A Dutil.c305 pn->shell = strdup(pw->pw_shell);
/original-bsd/usr.sbin/sendmail/src/
H A Drecipient.c513 if (!usershellok(pw->pw_name, pw->pw_shell))
1033 sh = pw->pw_shell;
H A Dmap.c2566 rwval = pw->pw_shell;
/original-bsd/contrib/emacs-18.57/src/
H A Dsysdep.c3454 strncpy (retpw.pw_shell, &up->uaf$t_defcli[1], up->uaf$t_defcli[0]);
3455 retpw.pw_shell[up->uaf$t_defcli[0]] = '\0';
3497 *retpw.pw_shell = '\0';