do not chmod symlinks because that will change the target of the symlink and not the symlink itself

This commit is contained in:
Johannes 'josch' Schauer 2018-10-03 09:22:18 +02:00
parent d634095da1
commit c6099857e2
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -1044,7 +1044,6 @@ sub setup {
die "type 1 not implemented";
} elsif ($type == 2) { # symlink
symlink $linkname, "$options->{root}/$fname";
chmod $mode, "$options->{root}/$fname";
} elsif ($type == 3 or $type == 4) { # character/block special
if (!$options->{havemknod}) {
open my $fh, '>', "$options->{root}/$fname" or die "cannot open $options->{root}/$fname: $!";