version 1.73, 2019/01/28 01:38:06 |
version 1.74, 2019/06/19 16:26:27 |
|
|
|
|
if (!altshell) { |
if (!altshell) { |
if (asme) { |
if (asme) { |
/* if asme and non-std target shell, must be root */ |
/* must be root to override non-std target shell */ |
if (ruid && !chshell(shell)) |
if (ruid && !chshell(pwd->pw_shell)) |
auth_errx(as, 1, "permission denied (shell)."); |
auth_errx(as, 1, "permission denied (shell)."); |
} else if (pwd->pw_shell && *pwd->pw_shell) { |
} else if (pwd->pw_shell && *pwd->pw_shell) { |
if ((shell = strdup(pwd->pw_shell)) == NULL) |
if ((shell = strdup(pwd->pw_shell)) == NULL) |