EXEC_PREFER_APPLETS support by Gabriel L. Somlo <somlo@cmu.edu>

This commit is contained in:
Denis Vlasenko
2007-02-06 01:20:12 +00:00
parent cc24419e98
commit 1d76f439da
22 changed files with 39 additions and 28 deletions

View File

@@ -310,7 +310,7 @@ int chpst_main(int argc, char **argv)
if (OPT_nostdin) close(0);
if (OPT_nostdout) close(1);
if (OPT_nostderr) close(2);
execvp(argv[0], argv);
BB_EXECVP(argv[0], argv);
bb_perror_msg_and_die("exec %s", argv[0]);
}
@@ -322,7 +322,7 @@ static void setuidgid(int argc, char **argv)
if (!account) bb_show_usage();
if (!*++argv) bb_show_usage();
suidgid((char*)account);
execvp(argv[0], argv);
BB_EXECVP(argv[0], argv);
bb_perror_msg_and_die("exec %s", argv[0]);
}
@@ -334,7 +334,7 @@ static void envuidgid(int argc, char **argv)
if (!account) bb_show_usage();
if (!*++argv) bb_show_usage();
euidgid((char*)account);
execvp(argv[0], argv);
BB_EXECVP(argv[0], argv);
bb_perror_msg_and_die("exec %s", argv[0]);
}
@@ -346,7 +346,7 @@ static void envdir(int argc, char **argv)
if (!dir) bb_show_usage();
if (!*++argv) bb_show_usage();
edir(dir);
execvp(argv[0], argv);
BB_EXECVP(argv[0], argv);
bb_perror_msg_and_die("exec %s", argv[0]);
}
@@ -369,6 +369,6 @@ static void softlimit(int argc, char **argv)
argv += optind;
if (!argv[0]) bb_show_usage();
slimit();
execvp(argv[0], argv);
BB_EXECVP(argv[0], argv);
bb_perror_msg_and_die("exec %s", argv[0]);
}