diff options
author | Olivier Thauvin <nanardon@mandriva.org> | 2006-07-01 18:53:10 +0000 |
---|---|---|
committer | Olivier Thauvin <nanardon@mandriva.org> | 2006-07-01 18:53:10 +0000 |
commit | e35c56fed3c51b3c7d4b41da2fa459872868cf67 (patch) | |
tree | b98c3491feab6ba7bc5b66c7596c4577d0676cf1 /relink_symlinks | |
parent | 95907cecfe3955f4bcd98da2799960e2ec9a2d64 (diff) | |
download | spec-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
Diffstat (limited to 'relink_symlinks')
-rw-r--r-- | relink_symlinks | 2 |
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 $_; |