diff options
author | Denis Vlasenko | 2006-12-23 00:49:10 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-12-23 00:49:10 +0000 |
commit | 8f6c79240dc7c1e0b819a1a1309240477d8e0d84 (patch) | |
tree | 79b9cc0ea2e0077dc8e78c1adc6a61c6992becba /findutils | |
parent | 4cccc03768ecde58e8acd5e4f40e51227e3c14cc (diff) | |
download | busybox-8f6c79240dc7c1e0b819a1a1309240477d8e0d84.zip busybox-8f6c79240dc7c1e0b819a1a1309240477d8e0d84.tar.gz |
find: fix spurious -exec error messages
(bug reported by Bernhard Fischer <rep.nop@aon.at>)
Diffstat (limited to 'findutils')
-rw-r--r-- | findutils/find.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/findutils/find.c b/findutils/find.c index bf6b71a..38bbfbe 100644 --- a/findutils/find.c +++ b/findutils/find.c @@ -197,9 +197,8 @@ ACTF(exec) for (i = 0; i < ap->exec_argc; i++) argv[i] = subst(ap->exec_argv[i], ap->subst_count[i], fileName); argv[i] = NULL; /* terminate the list */ - errno = 0; rc = wait4pid(spawn(argv)); - if (errno) + if (rc) bb_perror_msg("%s", argv[0]); for (i = 0; i < ap->exec_argc; i++) free(argv[i]); |