diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-02-06 01:20:12 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-02-06 01:20:12 +0000 |
commit | 1d76f439da81d3a05f0e0fdde3f81ec56fb20836 (patch) | |
tree | f3e2e2185d092f87843fe4bbc9d1098185a5bdbd /runit | |
parent | cc24419e98853aede7c652edb3c1c79a9865bdda (diff) | |
download | busybox-1d76f439da81d3a05f0e0fdde3f81ec56fb20836.tar.gz |
EXEC_PREFER_APPLETS support by Gabriel L. Somlo <somlo@cmu.edu>
Diffstat (limited to 'runit')
-rw-r--r-- | runit/chpst.c | 10 | ||||
-rw-r--r-- | runit/runsvdir.c | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/runit/chpst.c b/runit/chpst.c index 053051d1d..7b907845f 100644 --- a/runit/chpst.c +++ b/runit/chpst.c @@ -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]); } diff --git a/runit/runsvdir.c b/runit/runsvdir.c index d9053ad6a..2d2b5db31 100644 --- a/runit/runsvdir.c +++ b/runit/runsvdir.c @@ -73,7 +73,7 @@ static void runsv(int no, const char *name) sig_uncatch(SIGHUP); sig_uncatch(SIGTERM); if (pgrp) setsid(); - execvp(prog[0], prog); + BB_EXECVP(prog[0], prog); //pathexec_run(*prog, prog, (char* const*)environ); fatal2_cannot("start runsv ", name); } |