mac80211: add pending ath9k/ath10k patches
[openwrt/staging/stintel.git] / package / utils / busybox / patches / 280-fix_find_regression.patch
1 find: fix regression in status processing for path arguments
2
3 Regression added in commit 14158b4127dba30466c50147b868a6a89702960b
4 "find: add optional support for '-exec ... {} +'"
5
6 This commit causes find to exit on the first path argument that was not
7 found, which breaks existing scripts and is incompatible to other
8 implementations.
9
10 Instead of exiting on the first failure, return EXIT_FAILURE at the end
11 if any error occurred.
12
13 Signed-off-by: Felix Fietkau <nbd@openwrt.org>
14
15 --- a/findutils/find.c
16 +++ b/findutils/find.c
17 @@ -1460,12 +1460,10 @@ int find_main(int argc UNUSED_PARAM, cha
18 NULL, /* user data */
19 0) /* depth */
20 ) {
21 - status = EXIT_FAILURE;
22 - goto out;
23 + status |= EXIT_FAILURE;
24 }
25 }
26
27 - IF_FEATURE_FIND_EXEC_PLUS(status = flush_exec_plus();)
28 -out:
29 + IF_FEATURE_FIND_EXEC_PLUS(status |= flush_exec_plus();)
30 return status;
31 }