From 5498f61ce56ea8ccf605cc6f476f42b6e1d53503 Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Mon, 22 Oct 2018 15:05:19 +0200 Subject: [PATCH] apt does not support double quotes in paths --- mmdebstrap | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mmdebstrap b/mmdebstrap index 7b452b8..e5678fc 100755 --- a/mmdebstrap +++ b/mmdebstrap @@ -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; # for unshare mode the rootfs directory has to have appropriate # permissions