aboutsummaryrefslogtreecommitdiff
path: root/findutils
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-12-23 00:49:10 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-12-23 00:49:10 +0000
commit8f6c79240dc7c1e0b819a1a1309240477d8e0d84 (patch)
tree79b9cc0ea2e0077dc8e78c1adc6a61c6992becba /findutils
parent4cccc03768ecde58e8acd5e4f40e51227e3c14cc (diff)
downloadbusybox-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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/findutils/find.c b/findutils/find.c
index bf6b71a83..38bbfbec9 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]);