apt does not support double quotes in paths

This commit is contained in:
Johannes 'josch' Schauer 2018-10-22 15:05:19 +02:00
parent 27f10e2300
commit 5498f61ce5
Signed by: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -1535,6 +1535,12 @@ sub main() {
} }
} }
# check for double quotes because apt doesn't allow to escape them and
# thus paths with double quotes are invalid in the apt config
if ($options->{root} =~ /"/) {
die "apt cannot handle paths with double quotes";
}
my @idmap; my @idmap;
# for unshare mode the rootfs directory has to have appropriate # for unshare mode the rootfs directory has to have appropriate
# permissions # permissions