fix /proc/mounts regex to find binfmt_misc

This commit is contained in:
Johannes 'josch' Schauer 2020-04-10 12:25:45 +02:00
parent d26f5de912
commit a0c393f256
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -3298,9 +3298,9 @@ sub main() {
or error "failed to open /proc/mounts: $!";
unless (
grep {
/^binfmt_misc
\/proc\/sys\/fs\/binfmt_misc
binfmt_misc/x
/^binfmt_misc\s+
\/proc\/sys\/fs\/binfmt_misc\s+
binfmt_misc\s+/x
} (<$fh>)
) {
warning "binfmt_misc not found in /proc/mounts -- not"