aboutsummaryrefslogtreecommitdiffstats
path: root/relink_symlinks
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2012-07-24 08:49:20 +0000
committerColin Guthrie <colin@mageia.org>2012-07-24 08:49:20 +0000
commitaf7e4ddded20edbe27719bab293e6ffb7e0029cf (patch)
treecc44b0f5044741e54543b43cd79e85c122c03529 /relink_symlinks
parentb868ea8a4157e56f82dbe69512c446c68fa31c3d (diff)
downloadspec-helper-af7e4ddded20edbe27719bab293e6ffb7e0029cf.tar
spec-helper-af7e4ddded20edbe27719bab293e6ffb7e0029cf.tar.gz
spec-helper-af7e4ddded20edbe27719bab293e6ffb7e0029cf.tar.bz2
spec-helper-af7e4ddded20edbe27719bab293e6ffb7e0029cf.tar.xz
spec-helper-af7e4ddded20edbe27719bab293e6ffb7e0029cf.zip
Do not make symlinks to /{dev,proc,sys}/ relative
Diffstat (limited to 'relink_symlinks')
-rwxr-xr-xrelink_symlinks2
1 files changed, 1 insertions, 1 deletions
diff --git a/relink_symlinks b/relink_symlinks
index 0150899..f9642df 100755
--- a/relink_symlinks
+++ b/relink_symlinks
@@ -15,7 +15,7 @@ sub relativize {
return unless -l $_;
my $link = readlink($_);
- return unless $link =~ m{^/};
+ return unless $link =~ m{^/} && $link !~ m{^/(dev|proc|sys)/};
$link =~ s{^/}{};
my $dirname = $File::Find::dir;