symlinks must also be created with havemknod

This commit is contained in:
Johannes 'josch' Schauer 2018-10-22 11:38:47 +02:00
parent b0efc9aa86
commit 145bfe5233
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -934,8 +934,8 @@ sub setup {
} elsif ($type == 1) { # hardlink
die "type 1 not implemented";
} elsif ($type == 2) { # symlink
# nothing to do
next;
symlink $linkname, "$options->{root}/$fname" or die "cannot create symlink $fname";
next; # chmod cannot work on symlinks
} elsif ($type == 3) { # character special
0 == system('mknod', "$options->{root}/$fname", 'c', $devmajor, $devminor) or die "mknod failed: $?";
} elsif ($type == 4) { # block special