version 1.67, 2011/08/24 10:29:57 |
version 1.68, 2011/09/25 18:53:04 |
|
|
if (*wp->cmd != '\0') { |
if (*wp->cmd != '\0') { |
/* Set SHELL but only if it is currently not useful. */ |
/* Set SHELL but only if it is currently not useful. */ |
shell = getenv("SHELL"); |
shell = getenv("SHELL"); |
if (shell == NULL || *shell == '\0' || areshell(shell)) |
if (checkshell(shell)) |
setenv("SHELL", wp->shell, 1); |
setenv("SHELL", wp->shell, 1); |
|
|
execl(_PATH_BSHELL, "sh", "-c", wp->cmd, (char *) NULL); |
execl(_PATH_BSHELL, "sh", "-c", wp->cmd, (char *) NULL); |