diff options
author | Manuel Novoa III | 2003-03-19 09:13:01 +0000 |
---|---|---|
committer | Manuel Novoa III | 2003-03-19 09:13:01 +0000 |
commit | cad5364599eb5062d59e0c397ed638ddd61a8d5d (patch) | |
tree | a318d0f03aa076c74b576ea45dc543a5669e8e91 /libbb/run_parts.c | |
parent | e01f9662a5bd5d91be4f6b3941b57fff73cd5af1 (diff) | |
download | busybox-cad5364599eb5062d59e0c397ed638ddd61a8d5d.zip busybox-cad5364599eb5062d59e0c397ed638ddd61a8d5d.tar.gz |
Major coreutils update.
Diffstat (limited to 'libbb/run_parts.c')
-rw-r--r-- | libbb/run_parts.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libbb/run_parts.c b/libbb/run_parts.c index 7829a84..5864566 100644 --- a/libbb/run_parts.c +++ b/libbb/run_parts.c @@ -69,7 +69,7 @@ extern int run_parts(char **args, const unsigned char test_mode) if (test_mode & 2) { return(2); } - perror_msg_and_die("failed to open directory %s", arg0); + bb_perror_msg_and_die("failed to open directory %s", arg0); } for (i = 0; i < entries; i++) { @@ -77,7 +77,7 @@ extern int run_parts(char **args, const unsigned char test_mode) filename = concat_path_file(arg0, namelist[i]->d_name); if (stat(filename, &st) < 0) { - perror_msg_and_die("failed to stat component %s", filename); + bb_perror_msg_and_die("failed to stat component %s", filename); } if (S_ISREG(st.st_mode) && !access(filename, X_OK)) { if (test_mode & 1) { @@ -89,7 +89,7 @@ extern int run_parts(char **args, const unsigned char test_mode) int pid; if ((pid = vfork()) < 0) { - perror_msg_and_die("failed to fork"); + bb_perror_msg_and_die("failed to fork"); } else if (!pid) { args[0] = filename; execv(filename, args); @@ -100,19 +100,19 @@ extern int run_parts(char **args, const unsigned char test_mode) waitpid(pid, &result, 0); if(exec_errno) { errno = exec_errno; - perror_msg_and_die("failed to exec %s", filename); + bb_perror_msg_and_die("failed to exec %s", filename); } if (WIFEXITED(result) && WEXITSTATUS(result)) { - perror_msg("%s exited with return code %d", filename, WEXITSTATUS(result)); + bb_perror_msg("%s exited with return code %d", filename, WEXITSTATUS(result)); exitstatus = 1; } else if (WIFSIGNALED(result)) { - perror_msg("%s exited because of uncaught signal %d", filename, WTERMSIG(result)); + bb_perror_msg("%s exited because of uncaught signal %d", filename, WTERMSIG(result)); exitstatus = 1; } } } else if (!S_ISDIR(st.st_mode)) { - error_msg("component %s is not an executable plain file", filename); + bb_error_msg("component %s is not an executable plain file", filename); exitstatus = 1; } |