mirror of
https://github.com/sheumann/hush.git
synced 2024-07-13 17:30:40 +00:00
Make test mode output same as official version
This commit is contained in:
parent
a9adef0394
commit
aad465efb7
@ -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);
|
perror_msg_and_die("failed to stat component %s", filename);
|
||||||
}
|
}
|
||||||
if (S_ISREG(st.st_mode) && !access(filename, X_OK)) {
|
if (S_ISREG(st.st_mode) && !access(filename, X_OK)) {
|
||||||
if (test_mode)
|
if (test_mode) {
|
||||||
printf("run-parts would run %s\n", filename);
|
puts("%s", filename);
|
||||||
else {
|
} else {
|
||||||
/* exec_errno is common vfork variable */
|
/* exec_errno is common vfork variable */
|
||||||
volatile int exec_errno = 0;
|
volatile int exec_errno = 0;
|
||||||
int result;
|
int result;
|
||||||
|
Loading…
Reference in New Issue
Block a user