forked from josch/mmdebstrap
Skip the loop if nothing was created so that chmod later doesn't fail
This commit is contained in:
parent
eeb1ba4e11
commit
d634095da1
1 changed files with 1 additions and 0 deletions
|
@ -923,6 +923,7 @@ sub setup {
|
||||||
die "type 1 not implemented";
|
die "type 1 not implemented";
|
||||||
} elsif ($type == 2) { # symlink
|
} elsif ($type == 2) { # symlink
|
||||||
# nothing to do
|
# nothing to do
|
||||||
|
next;
|
||||||
} elsif ($type == 3) { # character special
|
} elsif ($type == 3) { # character special
|
||||||
0 == system('mknod', "$options->{root}/$fname", 'c', $devmajor, $devminor) or die "mknod failed: $?";
|
0 == system('mknod', "$options->{root}/$fname", 'c', $devmajor, $devminor) or die "mknod failed: $?";
|
||||||
} elsif ($type == 4) { # block special
|
} elsif ($type == 4) { # block special
|
||||||
|
|
Loading…
Reference in a new issue