diff options
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/chroot.c | 2 | ||||
-rw-r--r-- | coreutils/env.c | 2 | ||||
-rw-r--r-- | coreutils/install.c | 2 | ||||
-rw-r--r-- | coreutils/nice.c | 2 | ||||
-rw-r--r-- | coreutils/nohup.c | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/coreutils/chroot.c b/coreutils/chroot.c index 16c743f..fcd70f2 100644 --- a/coreutils/chroot.c +++ b/coreutils/chroot.c @@ -33,6 +33,6 @@ int chroot_main(int argc, char **argv) argv[1] = (char *) "-i"; } - execvp(*argv, argv); + BB_EXECVP(*argv, argv); bb_perror_msg_and_die("cannot execute %s", *argv); } diff --git a/coreutils/env.c b/coreutils/env.c index 04279f3..7be0c63 100644 --- a/coreutils/env.c +++ b/coreutils/env.c @@ -81,7 +81,7 @@ int env_main(int argc, char** argv) } if (*argv) { - execvp(*argv, argv); + BB_EXECVP(*argv, argv); /* SUSv3-mandated exit codes. */ xfunc_error_retval = (errno == ENOENT) ? 127 : 126; bb_perror_msg_and_die("%s", *argv); diff --git a/coreutils/install.c b/coreutils/install.c index dd73fb6..c105add 100644 --- a/coreutils/install.c +++ b/coreutils/install.c @@ -126,7 +126,7 @@ int install_main(int argc, char **argv) ret = EXIT_FAILURE; } if (flags & OPT_STRIP) { - if (execlp("strip", "strip", dest, NULL) == -1) { + if (BB_EXECLP("strip", "strip", dest, NULL) == -1) { bb_perror_msg("strip"); ret = EXIT_FAILURE; } diff --git a/coreutils/nice.c b/coreutils/nice.c index b7bff6a..3285315 100644 --- a/coreutils/nice.c +++ b/coreutils/nice.c @@ -47,7 +47,7 @@ int nice_main(int argc, char **argv) } } - execvp(*argv, argv); /* Now exec the desired program. */ + BB_EXECVP(*argv, argv); /* Now exec the desired program. */ /* The exec failed... */ xfunc_error_retval = (errno == ENOENT) ? 127 : 126; /* SUSv3 */ diff --git a/coreutils/nohup.c b/coreutils/nohup.c index a9944b7..6a6c70e 100644 --- a/coreutils/nohup.c +++ b/coreutils/nohup.c @@ -53,7 +53,7 @@ int nohup_main(int argc, char **argv) close(nullfd); signal(SIGHUP, SIG_IGN); - execvp(argv[1], argv+1); + BB_EXECVP(argv[1], argv+1); if (ENABLE_FEATURE_CLEAN_UP && home) free((char*)nohupout); bb_perror_msg_and_die("%s", argv[1]); |