Symbol: shell
bin/mined/mined1.c
576
const char *shell;
bin/mined/mined1.c
578
if ((shell = getenv("SHELL")) == NIL_PTR) shell = "/bin/sh";
bin/mined/mined1.c
594
execl(shell, shell, NULL);
bin/mined/mined1.c
608
error("Cannot exec ", shell);
crypto/openssh/auth.c
122
char *shell = xstrdup((pw->pw_shell[0] == '\0') ?
crypto/openssh/auth.c
125
if (stat(shell, &st) == -1) {
crypto/openssh/auth.c
127
"does not exist", pw->pw_name, shell);
crypto/openssh/auth.c
128
free(shell);
crypto/openssh/auth.c
134
"is not executable", pw->pw_name, shell);
crypto/openssh/auth.c
135
free(shell);
crypto/openssh/auth.c
138
free(shell);
crypto/openssh/readconf.c
537
char *shell;
crypto/openssh/readconf.c
541
if ((shell = getenv("SHELL")) == NULL)
crypto/openssh/readconf.c
542
shell = _PATH_BSHELL;
crypto/openssh/readconf.c
544
if (access(shell, X_OK) == -1) {
crypto/openssh/readconf.c
546
shell, strerror(errno));
crypto/openssh/readconf.c
559
argv[0] = shell;
crypto/openssh/session.c
1049
child_set_env(&env, &envsize, "SHELL", shell);
crypto/openssh/session.c
1190
do_rc_files(struct ssh *ssh, Session *s, const char *shell)
crypto/openssh/session.c
1205
if (xasprintf(&cmd, "%s -c '%s %s'", shell, _PATH_BSHELL,
crypto/openssh/session.c
1508
const char *shell, *shell0;
crypto/openssh/session.c
1560
shell = (pw->pw_shell[0] == '\0') ? _PATH_BSHELL : pw->pw_shell;
crypto/openssh/session.c
1566
env = do_setup_env(ssh, s, shell);
crypto/openssh/session.c
1569
shell = login_getcapstr(lc, "shell", (char *)shell, (char *)shell);
crypto/openssh/session.c
1630
do_rc_files(ssh, s, shell);
crypto/openssh/session.c
1663
if ((shell0 = strrchr(shell, '/')) != NULL)
crypto/openssh/session.c
1666
shell0 = shell;
crypto/openssh/session.c
1682
perror(shell);
crypto/openssh/session.c
1689
execve(shell, argv, env);
crypto/openssh/session.c
1692
perror(shell);
crypto/openssh/session.c
1703
execve(shell, argv, env);
crypto/openssh/session.c
1704
perror(shell);
crypto/openssh/session.c
722
char *shell = s->pw->pw_shell;
crypto/openssh/session.c
724
if (shell[0] == '\0') /* empty shell means /bin/sh */
crypto/openssh/session.c
725
shell =_PATH_BSHELL;
crypto/openssh/session.c
726
mm_audit_run_command(shell);
crypto/openssh/session.c
971
do_setup_env(struct ssh *ssh, Session *s, const char *shell)
crypto/openssh/sftp.c
327
char *shell;
crypto/openssh/sftp.c
333
if ((shell = getenv("SHELL")) == NULL || *shell == '\0')
crypto/openssh/sftp.c
334
shell = _PATH_BSHELL;
crypto/openssh/sftp.c
342
debug3("Executing %s -c \"%s\"", shell, args);
crypto/openssh/sftp.c
343
execl(shell, shell, "-c", args, (char *)NULL);
crypto/openssh/sftp.c
345
debug3("Executing %s", shell);
crypto/openssh/sftp.c
346
execl(shell, shell, (char *)NULL);
crypto/openssh/sftp.c
348
fprintf(stderr, "Couldn't execute \"%s\": %s\n", shell,
crypto/openssh/ssh-agent.c
2197
char *shell, *format, *pidstr, *agentsocket = NULL;
crypto/openssh/ssh-agent.c
2296
shell = getenv("SHELL");
crypto/openssh/ssh-agent.c
2297
if (shell != NULL && (len = strlen(shell)) > 2 &&
crypto/openssh/ssh-agent.c
2298
strncmp(shell + len - 3, "csh", 3) == 0)
crypto/openssh/sshconnect.c
120
char *shell;
crypto/openssh/sshconnect.c
122
if ((shell = getenv("SHELL")) == NULL)
crypto/openssh/sshconnect.c
123
shell = _PATH_BSHELL;
crypto/openssh/sshconnect.c
158
argv[0] = shell;
crypto/openssh/sshconnect.c
1696
char *shell;
crypto/openssh/sshconnect.c
1705
if ((shell = getenv("SHELL")) == NULL || *shell == '\0')
crypto/openssh/sshconnect.c
1706
shell = _PATH_BSHELL;
crypto/openssh/sshconnect.c
1712
debug3("Executing %s -c \"%s\"", shell, args);
crypto/openssh/sshconnect.c
1713
execl(shell, shell, "-c", args, (char *)NULL);
crypto/openssh/sshconnect.c
1715
shell, args, strerror(errno));
crypto/openssh/sshconnect.c
202
char *shell;
crypto/openssh/sshconnect.c
204
if ((shell = getenv("SHELL")) == NULL || *shell == '\0')
crypto/openssh/sshconnect.c
205
shell = _PATH_BSHELL;
crypto/openssh/sshconnect.c
241
argv[0] = shell;
games/atc/input.c
328
char *shell, *base;
games/atc/input.c
335
if ((shell = getenv("SHELL")) != NULL)
games/atc/input.c
337
base = strrchr(shell, '/');
games/atc/input.c
339
base = shell;
games/atc/input.c
342
execl(shell, base, NULL);
games/rogue/machdep.c
504
md_shell(const char *shell)
games/rogue/machdep.c
516
execl(shell, shell, NULL);
libexec/ftpd/ftpd.c
1016
if ((shell = pw->pw_shell) == NULL || *shell == 0)
libexec/ftpd/ftpd.c
1017
shell = _PATH_BSHELL;
libexec/ftpd/ftpd.c
1020
if (strcmp(cp, shell) == 0)
libexec/ftpd/ftpd.c
975
char *cp, *shell;
sbin/init/init.c
642
const char *shell = _PATH_BSHELL;
sbin/init/init.c
709
shell = altshell;
sbin/init/init.c
727
execv(shell, __DECONST(char **, argv));
sbin/init/init.c
728
emergency("can't exec %s for single user: %m", shell);
sys/kern/imgact_shell.c
183
EXEC_SET(shell, shell_execsw);
usr.bin/apply/apply.c
111
shell = name = NULL;
usr.bin/apply/apply.c
113
shell = (tmpshell != NULL) ? strdup(tmpshell) : strdup(_PATH_BSHELL);
usr.bin/apply/apply.c
114
if (shell == NULL)
usr.bin/apply/apply.c
116
slashp = strrchr(shell, '/');
usr.bin/apply/apply.c
117
name = (slashp != NULL) ? slashp + 1 : shell;
usr.bin/apply/apply.c
207
if (exec_shell(c, shell, name))
usr.bin/apply/apply.c
217
free(shell);
usr.bin/apply/apply.c
59
char *c, *cmd, *name, *p, *q, *shell, *slashp, *tmpshell;
usr.bin/finger/finger.h
47
char *shell; /* user's shell */
usr.bin/finger/lprint.c
115
printf("\tShell: %-s\n", *pn->shell ? pn->shell : _PATH_BSHELL);
usr.bin/finger/util.c
320
if ((pn->shell = strdup(pw->pw_shell)) == NULL)
usr.bin/limits/limits.c
630
getshellbyname(const char * shell)
usr.bin/limits/limits.c
634
const char * p = strrchr(shell, '/');
usr.bin/limits/limits.c
636
p = p ? p + 1 : shell;
usr.bin/limits/limits.c
671
char * shell = getenv("SHELL");
usr.bin/limits/limits.c
673
if (shell != NULL && stat(shell, &st) != -1) {
usr.bin/limits/limits.c
679
return getshellbyname(shell);
usr.bin/login/login.c
162
const char *shell = NULL;
usr.bin/login/login.c
414
shell = login_getcapstr(lc, "shell", pwd->pw_shell, pwd->pw_shell);
usr.bin/login/login.c
421
if (*shell == '\0') /* Not overridden */
usr.bin/login/login.c
422
shell = pwd->pw_shell;
usr.bin/login/login.c
423
if ((shell = strdup(shell)) == NULL) {
usr.bin/login/login.c
647
execlp(shell, arg0, NULL);
usr.bin/login/login.c
648
err(1, "%s", shell);
usr.bin/mail/cmdtab.c
69
{ "!", shell, I|STRLIST, 0, 0 },
usr.bin/mail/collect.c
203
shell(&linebuf[2]);
usr.bin/mail/extern.h
218
int shell(char *);
usr.bin/mail/lex.c
297
shell(cp+1);
usr.bin/newgrp/newgrp.c
258
const char *shell;
usr.bin/newgrp/newgrp.c
261
shell = pwd->pw_shell;
usr.bin/newgrp/newgrp.c
262
if (*shell == '\0')
usr.bin/newgrp/newgrp.c
263
shell = _PATH_BSHELL;
usr.bin/newgrp/newgrp.c
284
if (setenv("SHELL", shell, 1) == -1)
usr.bin/newgrp/newgrp.c
297
if (asprintf(args, "-%s", basename(strdup(shell))) < 0)
usr.bin/newgrp/newgrp.c
301
execv(shell, args);
usr.bin/newgrp/newgrp.c
302
err(1, "%s", shell);
usr.bin/newgrp/newgrp.c
308
const char *shell;
usr.bin/newgrp/newgrp.c
310
shell = pwd->pw_shell;
usr.bin/newgrp/newgrp.c
311
if (*shell == '\0')
usr.bin/newgrp/newgrp.c
312
shell = _PATH_BSHELL;
usr.bin/newgrp/newgrp.c
313
execl(shell, basename(strdup(shell)), NULL);
usr.bin/newgrp/newgrp.c
314
err(1, "%s", shell);
usr.bin/script/script.c
291
const char *shell;
usr.bin/script/script.c
293
shell = getenv("SHELL");
usr.bin/script/script.c
294
if (shell == NULL)
usr.bin/script/script.c
295
shell = _PATH_BSHELL;
usr.bin/script/script.c
306
execl(shell, shell, "-i", (char *)NULL);
usr.bin/script/script.c
307
warn("%s", shell);
usr.bin/su/su.c
154
const char *p = NULL, *user, *shell, *mytty, **nargv;
usr.bin/su/su.c
163
shell = class = cleanenv = NULL;
usr.bin/su/su.c
267
shell = strncpy(shellbuf, pwd->pw_shell,
usr.bin/su/su.c
272
shell = _PATH_BSHELL;
usr.bin/su/su.c
374
shell = pwd->pw_shell;
usr.bin/su/su.c
378
shell = _PATH_BSHELL;
usr.bin/su/su.c
384
p = strrchr(shell, '/');
usr.bin/su/su.c
388
p = shell;
usr.bin/su/su.c
514
if (setenv("SHELL", shell, 1) == -1)
usr.bin/su/su.c
515
err(1, "setenv: cannot set SHELL=%s", shell);
usr.bin/su/su.c
558
execv(shell, np.b);
usr.bin/su/su.c
559
err(1, "%s", shell);
usr.bin/telnet/commands.c
2478
{ "!", shellhelp, shell, 1 },
usr.bin/tip/cmdtab.c
36
{ '!', NORM, "shell", shell },
usr.bin/tip/tip.h
321
void shell(int);
usr.sbin/authpf/authpf.c
140
shell = login_getcapstr(lc, "shell", pw->pw_shell,
usr.sbin/authpf/authpf.c
143
shell = pw->pw_shell;
usr.sbin/authpf/authpf.c
147
if (strcmp(shell, PATH_AUTHPF_SHELL)) {
usr.sbin/authpf/authpf.c
90
const char *shell;
usr.sbin/chroot/chroot.c
161
if (!(shell = getenv("SHELL")))
usr.sbin/chroot/chroot.c
162
shell = _PATH_BSHELL;
usr.sbin/chroot/chroot.c
163
execlp(shell, shell, "-i", NULL);
usr.sbin/chroot/chroot.c
164
err(1, "%s", shell);
usr.sbin/chroot/chroot.c
56
const char *shell;
usr.sbin/cron/cron/do_command.c
291
char *shell = env_get("SHELL", e->envp);
usr.sbin/cron/cron/do_command.c
298
"\tcmd='%s' shell='%s'\n", e->cmd, shell);
usr.sbin/cron/cron/do_command.c
302
execle(shell, shell, "-c", e->cmd, NULL, e->envp);
usr.sbin/cron/cron/do_command.c
303
warn("execl: couldn't exec `%s'", shell);
usr.sbin/installer/dfuibe_installer/fn_configure.c
102
const char *shell, *uid, *group, *groups;
usr.sbin/installer/dfuibe_installer/fn_configure.c
172
shell = dfui_dataset_get_value(new_ds, "shell");
usr.sbin/installer/dfuibe_installer/fn_configure.c
187
!assert_clean(a->c, _("Shell"), shell, FILENAME_NOT_ALLOWED) ||
usr.sbin/installer/dfuibe_installer/fn_configure.c
196
} else if (!is_program("%s%s", a->os_root, shell) &&
usr.sbin/installer/dfuibe_installer/fn_configure.c
197
strcmp(shell, "/nonexistent") != 0) {
usr.sbin/installer/dfuibe_installer/fn_configure.c
212
shell,
usr.sbin/jail/jail.c
158
shell = pwd->pw_shell;
usr.sbin/jail/jail.c
160
shell = _PATH_BSHELL;
usr.sbin/jail/jail.c
164
setenv("SHELL", shell, 1);
usr.sbin/jail/jail.c
61
const char *shell, *p = NULL;
usr.sbin/ppp/command.c
597
const char *shell;
usr.sbin/ppp/command.c
628
if ((shell = getenv("SHELL")) == NULL)
usr.sbin/ppp/command.c
629
shell = _PATH_BSHELL;
usr.sbin/ppp/command.c
672
printf("ppp: Pausing until %s finishes\n", shell);
usr.sbin/ppp/command.c
674
execl(shell, shell, NULL);
usr.sbin/ppp/command.c
678
arg->argc > arg->argn ? arg->argv[arg->argn] : shell,
usr.sbin/pw/pw_user.c
516
char *shell = shell_path(cnf->shelldir, cnf->shells, arg->val);
usr.sbin/pw/pw_user.c
517
if (shell == NULL)
usr.sbin/pw/pw_user.c
518
shell = "";
usr.sbin/pw/pw_user.c
519
if (strcmp(shell, pwd->pw_shell) != 0) {
usr.sbin/pw/pw_user.c
520
pwd->pw_shell = shell;