summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/findutils/findutils-4.4.2/03-28872.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/findutils/findutils-4.4.2/03-28872.patch')
-rw-r--r--meta/recipes-extended/findutils/findutils-4.4.2/03-28872.patch58
1 files changed, 58 insertions, 0 deletions
diff --git a/meta/recipes-extended/findutils/findutils-4.4.2/03-28872.patch b/meta/recipes-extended/findutils/findutils-4.4.2/03-28872.patch
new file mode 100644
index 0000000000..940aaf6ff5
--- /dev/null
+++ b/meta/recipes-extended/findutils/findutils-4.4.2/03-28872.patch
@@ -0,0 +1,58 @@
1Upstream-Status: Backport
2
3commit 5f5eb921765794e8fc58c4bdffa2daa2ae34800f
4Author: James Youngman <jay@gnu.org>
5Date: Sat Feb 20 19:53:13 2010 +0000
6
7 Fix Savannah bug#28872, Mistake in "Problems with -exec and filenames"
8
9 * doc/find.texi (Problems with -exec and filenames): Add missing
10 $0 argument in example for sh -c 'something "$@" sh ...
11 * NEWS: Mention this change.
12
13 Signed-off-by: James Youngman <jay@gnu.org>
14
15diff --git a/ChangeLog b/ChangeLog
16index 13539a4..e94ba96 100644
17--- a/ChangeLog
18+++ b/ChangeLog
19@@ -1,5 +1,10 @@
20 2010-02-20 James Youngman <jay@gnu.org>
21
22+ Fix Savannah bug#28872, Mistake in "Problems with -exec and filenames"
23+ * doc/find.texi (Problems with -exec and filenames): Add missing
24+ $0 argument in example for sh -c 'something "$@" sh ...
25+ * NEWS: Mention this change.
26+
27 Fix Savannah bug# 28824: "-ctime x" yields "missing argument to
28 `-ctime'".
29 * find/parser.c (parse_fls): If the argument is invalid, reverse
30diff --git a/NEWS b/NEWS
31index 4e910df..4c97be9 100644
32--- a/NEWS
33+++ b/NEWS
34@@ -4,6 +4,9 @@ GNU findutils NEWS - User visible changes. -*- outline -*- (allout)
35
36 ** Bug Fixes
37
38+#28872: Mistake in "#safer" example in "Problems with -exec and
39+ filenames" section of the Texinfo manual.
40+
41 #28824: Corrected error message for "-ctime x".
42 Likewise for -gid, -inum, -links, -mmin, -cmin, -amin,
43 -uid, -used, -atime, -mtime, -ctime.
44diff --git a/doc/find.texi b/doc/find.texi
45index 2e5958d..391ffa0 100644
46--- a/doc/find.texi
47+++ b/doc/find.texi
48@@ -4830,8 +4830,8 @@ problem:
49
50 @example
51 # safer
52-find -exec sh -c 'something "$@@"' @{@} \;
53-find -execdir sh -c 'something "$@@"' @{@}\;
54+find -exec sh -c 'something "$@@"' sh @{@} \;
55+find -execdir sh -c 'something "$@@"' sh @{@}\;
56 @end example
57
58 This approach is not guaranteed to avoid every problem, but it is much