if newuidmap or newgidmap fail, print all their arguments

This commit is contained in:
Johannes 'josch' Schauer 2018-09-24 20:09:28 +02:00
parent d232870b28
commit e7e6ec0314
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -295,10 +295,10 @@ sub get_unshare_cmd(&$) {
}
my $idmapcmd = '';
if ($uidmapcmd ne "") {
0 == system "newuidmap $ppid $uidmapcmd" or die "newuidmap failed: $!";
0 == system "newuidmap $ppid $uidmapcmd" or die "newuidmap $ppid $uidmapcmd failed: $!";
}
if ($gidmapcmd ne "") {
0 == system "newgidmap $ppid $gidmapcmd" or die "newgidmap failed: $!";
0 == system "newgidmap $ppid $gidmapcmd" or die "newgidmap $ppid $gidmapcmd failed: $!";
}
exit 0;
}