be more permissive in the FAKECHROOT_DETECT version format

This commit is contained in:
Johannes Schauer Marin Rodrigues 2021-09-16 16:12:20 +02:00
parent 631b103ca7
commit c7390f648b
Signed by: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -4591,7 +4591,7 @@ sub main() {
my $content = do { local $/; <$rfh> };
waitpid $pid, 0;
my $result = 0;
if ($? == 0 and $content =~ /^fakechroot \d\.\d+$/) {
if ($? == 0 and $content =~ /^fakechroot [0-9.]+$/) {
$result = 1;
}
return $result;