summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--quilt.changes7
-rw-r--r--quilt/grep.in2
2 files changed, 8 insertions, 1 deletions
diff --git a/quilt.changes b/quilt.changes
index 1dc5639..e743129 100644
--- a/quilt.changes
+++ b/quilt.changes
@@ -1,4 +1,11 @@
-------------------------------------------------------------------
+Sat Mar 12 15:12:38 CET 2011 - jdelvare@suse.de
+
+- quilt/grep.in: Not all implementations of find default to the
+ current directory as the search root. So explicitly set the root
+ to "." if the user didn't provide one.
+
+-------------------------------------------------------------------
Wed Mar 9 22:56:29 CET 2011 - jdelvare@suse.de
- quilt.spec.in: BUILD_ROOT is only needed at installation time,
diff --git a/quilt/grep.in b/quilt/grep.in
index 4407737..270ba9c 100644
--- a/quilt/grep.in
+++ b/quilt/grep.in
@@ -114,7 +114,7 @@ fi
# may pass a single filename to grep and cause it to omit the file name.
[ -z "$opt_h" ] && opt_H=-H
-find "${myargs[@]}" \( \
+find "${myargs[@]:-.}" \( \
-path "./$QUILT_PATCHES/*" -o \
-path "./$QUILT_PC/*" \) -prune -o \
-type f -print \