diff --git a/grep-support-spaces.patch b/grep-support-spaces.patch new file mode 100644 index 0000000..f2e96ee --- /dev/null +++ b/grep-support-spaces.patch @@ -0,0 +1,28 @@ +Subject: grep: Accept file names with spaces + +This is a continuation of Yasushi SHOJI's initial work of fixing +support for file names with spaces. This time I fixed support in the +grep command. This is particularly important because the grep command +operates on all files in the work tree, even if they aren't touched +by any patch, so the chances that one of them has a space in its name +is greater. As before, no guarantee is made that all options are +covered, but this should be a good starting point. + +Signed-off-by: Jean Delvare +--- + quilt/grep.in | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +--- quilt-0.48.orig/quilt/grep.in ++++ quilt-0.48/quilt/grep.in +@@ -117,8 +117,8 @@ fi + find "${myargs[@]}" \( \ + -path "./$QUILT_PATCHES/*" -o \ + -path "./$QUILT_PC/*" \) -prune -o \ +- -type f -print \ +-| xargs grep $opt_H "${args[@]}" \ ++ -type f -print0 \ ++| xargs -0 grep $opt_H "${args[@]}" \ + | if [ ${#myargs[@]} -eq 0 ]; then + sed -e 's,^./,,' + else diff --git a/mail-fix-a-temporary-directory-leak.patch b/mail-fix-a-temporary-directory-leak.patch new file mode 100644 index 0000000..5f9acb0 --- /dev/null +++ b/mail-fix-a-temporary-directory-leak.patch @@ -0,0 +1,20 @@ +From de13f097662d785863f52c1cdaca125cebfe40d2 Mon Sep 17 00:00:00 2001 +From: Jean Delvare +Date: Sun, 06 Feb 2011 17:22:20 +0000 +Subject: quilt mail: Fix a temporary directory leak. + +--- +diff --git a/quilt/mail.in b/quilt/mail.in +index a2cf2d5..d16b3c1 100644 +--- a/quilt/mail.in ++++ b/quilt/mail.in +@@ -350,6 +350,7 @@ then + + if [ -z "$subject" ] + then ++ rm -rf $tmpdir + return 1 + fi + +-- +cgit v0.8.3.4 diff --git a/quilt.changes b/quilt.changes index be26f1b..42cf42f 100644 --- a/quilt.changes +++ b/quilt.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Nov 10 21:00:07 CET 2011 - jdelvare@suse.de + +- grep-support-spaces.patch: grep: Accept file names with spaces. +- mail-fix-a-temporary-directory-leak.patch: mail: Fix a temporary + directory leak. + ------------------------------------------------------------------- Thu Nov 10 12:25:27 CET 2011 - pth@suse.de diff --git a/quilt.spec b/quilt.spec index eca400e..e179306 100644 --- a/quilt.spec +++ b/quilt.spec @@ -47,6 +47,8 @@ Patch12: setup-add-fuzz-parameter.patch Patch13: setup-support-reverse-patch.patch Patch14: completion-revert.patch Patch15: inspect-shell-syntax-errors.patch +Patch16: grep-support-spaces.patch +Patch17: mail-fix-a-temporary-directory-leak.patch Url: http://savannah.nongnu.org/projects/quilt BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -66,7 +68,7 @@ Authors: %prep %setup -q -%patch -p1 -P 1 -P 2 -P 3 -P 4 -P 5 -P 6 -P 7 -P 8 -P 9 -P 10 -P 11 -P 12 -P 13 -P 14 -P 15 +%patch -p1 -P 1 -P 2 -P 3 -P 4 -P 5 -P 6 -P 7 -P 8 -P 9 -P 10 -P 11 -P 12 -P 13 -P 14 -P 15 -P 16 -P 17 %build autoconf