version 1.68, 2015/10/23 03:44:59 |
version 1.69, 2015/10/24 19:47:44 |
|
|
fprintf(stderr, "Login incorrect\n"); |
fprintf(stderr, "Login incorrect\n"); |
} |
} |
|
|
if (pledge("stdio rpath exec id", NULL) == -1) |
|
err(1, "pledge"); |
|
|
|
if (!altshell) { |
if (!altshell) { |
if (asme) { |
if (asme) { |
/* if asme and non-std target shell, must be root */ |
/* if asme and non-std target shell, must be root */ |
|
|
if (setenv("SHELL", shell, 1) == -1) |
if (setenv("SHELL", shell, 1) == -1) |
auth_err(as, 1, "unable to set environment"); |
auth_err(as, 1, "unable to set environment"); |
} |
} |
|
|
|
if (pledge("stdio rpath exec id", NULL) == -1) |
|
err(1, "pledge"); |
|
|
np = *argv ? argv : argv - 1; |
np = *argv ? argv : argv - 1; |
if (iscsh == YES) { |
if (iscsh == YES) { |