diff options
author | Jean Delvare <jdelvare@suse.de> | 2011-03-12 15:14:43 +0100 |
---|---|---|
committer | Jean Delvare <jdelvare@suse.de> | 2011-03-12 15:14:43 +0100 |
commit | eec8aa089709a1711c2ef97cc6c272e7577d88b5 (patch) | |
tree | cd569556ac365c4e5d202b5ed55bc825e1464211 | |
parent | 2266ab6dcbad6afffd63c7f3cc454bd3f679c5ba (diff) | |
download | quilt-eec8aa089709a1711c2ef97cc6c272e7577d88b5.tar.gz |
quilt/grep.in: Explicitly set the root to "." if the user didn't provide one
Not all implementations of find default to the current directory as
the search root. In particular the "find" from FreeBSD doesn't.
-rw-r--r-- | quilt.changes | 7 | ||||
-rw-r--r-- | quilt/grep.in | 2 |
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 \ |