$RPM_BUILD_ROOT breaks brp-* scripts if it contains spaces (ticket #843)
authorJeff Tickle <jeff@jefftickle.com>
Tue, 6 Sep 2011 06:52:19 +0000 (09:52 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 6 Sep 2011 06:52:19 +0000 (09:52 +0300)
- 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.

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
scripts/find-debuginfo.sh

index 505dbde446e688d1d0d717e3bfac7c6722721d25..9f5fdd04786c693774ef1ff4f43b4d5233302525 100644 (file)
@@ -243,7 +243,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
This page took 0.052348 seconds and 5 git commands to generate.