From 1d76f439da81d3a05f0e0fdde3f81ec56fb20836 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Tue, 6 Feb 2007 01:20:12 +0000 Subject: EXEC_PREFER_APPLETS support by Gabriel L. Somlo --- runit/chpst.c | 10 +++++----- runit/runsvdir.c | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'runit') 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); } -- cgit v1.2.3