aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Thauvin <nanardon@mandriva.org>2006-07-01 18:53:10 +0000
committerOlivier Thauvin <nanardon@mandriva.org>2006-07-01 18:53:10 +0000
commite35c56fed3c51b3c7d4b41da2fa459872868cf67 (patch)
treeb98c3491feab6ba7bc5b66c7596c4577d0676cf1
parent95907cecfe3955f4bcd98da2799960e2ec9a2d64 (diff)
downloadspec-helper-e35c56fed3c51b3c7d4b41da2fa459872868cf67.tar
spec-helper-e35c56fed3c51b3c7d4b41da2fa459872868cf67.tar.gz
spec-helper-e35c56fed3c51b3c7d4b41da2fa459872868cf67.tar.bz2
spec-helper-e35c56fed3c51b3c7d4b41da2fa459872868cf67.tar.xz
spec-helper-e35c56fed3c51b3c7d4b41da2fa459872868cf67.zip
- fix potential bug with buildroot than include regexp meta character
-rw-r--r--relink_symlinks2
1 files changed, 1 insertions, 1 deletions
diff --git a/relink_symlinks b/relink_symlinks
index 5ad5234..251fb20 100644
--- a/relink_symlinks
+++ b/relink_symlinks
@@ -12,7 +12,7 @@ sub relativize {
$link =~ s{^/}{};
my $dirname = $File::Find::dir;
- $dirname =~ s/^$ENV{RPM_BUILD_ROOT}//;
+ $dirname =~ s/^\Q$ENV{RPM_BUILD_ROOT}\E//;
$dirname =~ s{/[^/]+}{../}g;
unlink $_;