From af5841269c63be5383ae1e0cdea27ef3d356d5a4 Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Sat, 2 May 2020 23:51:33 +0200 Subject: [PATCH] always check if _apt user can access /var/lib/apt/lists/partial --- mmdebstrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mmdebstrap b/mmdebstrap index e4d38f0..23c7f96 100755 --- a/mmdebstrap +++ b/mmdebstrap @@ -1610,7 +1610,7 @@ sub run_setup() { # drop privileges to the _apt user. This will fail if the _apt user does # not have permissions to read the root directory. In that case, we have # to disable apt sandboxing. - if ($options->{mode} eq 'root') { + { my $partial = '/var/lib/apt/lists/partial'; if ( system('/usr/lib/apt/apt-helper', 'drop-privs', '--', 'test',