diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-07-27 17:38:37 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-07-27 17:38:37 +0000 |
commit | 2d2ba482a77ac385b318afe2f4db22ceaad70d76 (patch) | |
tree | 98c84c810564b0cd94245a3260dbfb634cc5c08f /find-debuginfo.sh | |
parent | 7396ca2979ec9b954f015da48444fa7068c86d11 (diff) | |
download | rpm-setup-2d2ba482a77ac385b318afe2f4db22ceaad70d76.tar rpm-setup-2d2ba482a77ac385b318afe2f4db22ceaad70d76.tar.gz rpm-setup-2d2ba482a77ac385b318afe2f4db22ceaad70d76.tar.bz2 rpm-setup-2d2ba482a77ac385b318afe2f4db22ceaad70d76.tar.xz rpm-setup-2d2ba482a77ac385b318afe2f4db22ceaad70d76.zip |
backported from rpm.org (Jeff Tickle <jeff@jefftickle.com>, 2011-09-06)
$RPM_BUILD_ROOT breaks brp-* scripts if it contains spaces (ticket #843)
- This patch adds quotes around $RPM_BUILD_ROOT in places that I noticed
they were missing, and attempts to handle some of the problems that can
occur when looping over the output of find.
Diffstat (limited to 'find-debuginfo.sh')
-rwxr-xr-x | find-debuginfo.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/find-debuginfo.sh b/find-debuginfo.sh index ef2c5c4..a0a83e4 100755 --- a/find-debuginfo.sh +++ b/find-debuginfo.sh @@ -253,7 +253,7 @@ done || exit # For each symlink whose target has a .debug file, # make a .debug symlink to that file. -find $RPM_BUILD_ROOT ! -path "${debugdir}/*" -type l -print | +find "$RPM_BUILD_ROOT" ! -path "${debugdir}/*" -type l -print | while read f do t=$(readlink -m "$f").debug |