From af7e4ddded20edbe27719bab293e6ffb7e0029cf Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Tue, 24 Jul 2012 08:49:20 +0000 Subject: Do not make symlinks to /{dev,proc,sys}/ relative --- relink_symlinks | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'relink_symlinks') 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; -- cgit v1.2.1