From d634095da1f4538a65fd8851464f07cac9a5477c Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Wed, 3 Oct 2018 09:20:02 +0200 Subject: [PATCH] Skip the loop if nothing was created so that chmod later doesn't fail --- mmdebstrap | 1 + 1 file changed, 1 insertion(+) diff --git a/mmdebstrap b/mmdebstrap index c877332..ee6ef64 100755 --- a/mmdebstrap +++ b/mmdebstrap @@ -923,6 +923,7 @@ sub setup { die "type 1 not implemented"; } elsif ($type == 2) { # symlink # nothing to do + next; } elsif ($type == 3) { # character special 0 == system('mknod', "$options->{root}/$fname", 'c', $devmajor, $devminor) or die "mknod failed: $?"; } elsif ($type == 4) { # block special