diff --git a/apps/sudo.c b/apps/sudo.c index c0ad13bd..5d690281 100644 --- a/apps/sudo.c +++ b/apps/sudo.c @@ -72,6 +72,10 @@ int main(int argc, char ** argv) { continue; } + if (!strcmp(argv[1], "-s")) { + argv[1] = getenv("SHELL"); + } + char ** args = &argv[1]; execvp(args[0], args);