diff options
author | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-01-20 23:34:12 +0000 |
---|---|---|
committer | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-01-20 23:34:12 +0000 |
commit | 83dec33fc987a367b4fc0a62003885c69a2b330c (patch) | |
tree | 32647c9aa7dc7c4b0e51cf7f10c7b37abb6fd0a7 /libbb | |
parent | 9118853b4131ca4be1bf5bdc229047f704ccafd9 (diff) | |
download | busybox-w32-83dec33fc987a367b4fc0a62003885c69a2b330c.tar.gz busybox-w32-83dec33fc987a367b4fc0a62003885c69a2b330c.tar.bz2 busybox-w32-83dec33fc987a367b4fc0a62003885c69a2b330c.zip |
Make test mode output same as official version
git-svn-id: svn://busybox.net/trunk/busybox@6394 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/run_parts.c | 6 |
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) | |||
75 | perror_msg_and_die("failed to stat component %s", filename); | 75 | perror_msg_and_die("failed to stat component %s", filename); |
76 | } | 76 | } |
77 | if (S_ISREG(st.st_mode) && !access(filename, X_OK)) { | 77 | if (S_ISREG(st.st_mode) && !access(filename, X_OK)) { |
78 | if (test_mode) | 78 | if (test_mode) { |
79 | printf("run-parts would run %s\n", filename); | 79 | puts("%s", filename); |
80 | else { | 80 | } else { |
81 | /* exec_errno is common vfork variable */ | 81 | /* exec_errno is common vfork variable */ |
82 | volatile int exec_errno = 0; | 82 | volatile int exec_errno = 0; |
83 | int result; | 83 | int result; |