From 2d2ba482a77ac385b318afe2f4db22ceaad70d76 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 27 Jul 2012 17:38:37 +0000 Subject: backported from rpm.org (Jeff Tickle , 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. --- find-debuginfo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'find-debuginfo.sh') 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 -- cgit v1.2.1