diff options
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 $_; |