hack for sudo -s

This commit is contained in:
K. Lange 2018-08-01 10:19:22 +09:00
parent b3123d7e67
commit e2de537a28

View File

@ -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);