hack for sudo -s
This commit is contained in:
parent
b3123d7e67
commit
e2de537a28
@ -72,6 +72,10 @@ int main(int argc, char ** argv) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!strcmp(argv[1], "-s")) {
|
||||||
|
argv[1] = getenv("SHELL");
|
||||||
|
}
|
||||||
|
|
||||||
char ** args = &argv[1];
|
char ** args = &argv[1];
|
||||||
execvp(args[0], args);
|
execvp(args[0], args);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user