aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2003-01-20 23:34:12 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2003-01-20 23:34:12 +0000
commitaad465efb7db4a86166149ed1ea251347ea2a606 (patch)
tree32647c9aa7dc7c4b0e51cf7f10c7b37abb6fd0a7
parenta9adef0394b8f6f600150e3c8d288f85e72d7f49 (diff)
downloadbusybox-aad465efb7db4a86166149ed1ea251347ea2a606.tar.gz
Make test mode output same as official version
-rw-r--r--libbb/run_parts.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libbb/run_parts.c b/libbb/run_parts.c
index 6df51a14e..5fae80592 100644
--- a/libbb/run_parts.c
+++ b/libbb/run_parts.c
@@ -75,9 +75,9 @@ extern int run_parts(char **args, const unsigned char test_mode)
perror_msg_and_die("failed to stat component %s", filename);
}
if (S_ISREG(st.st_mode) && !access(filename, X_OK)) {
- if (test_mode)
- printf("run-parts would run %s\n", filename);
- else {
+ if (test_mode) {
+ puts("%s", filename);
+ } else {
/* exec_errno is common vfork variable */
volatile int exec_errno = 0;
int result;