nixos/binfmt: fix extension for Windows binaries

Extension based matching for Windows targets define it '.exe' but kernel
documentation explicitly states it should be passed "without the .".

From https://docs.kernel.org/admin-guide/binfmt-misc.html
> * magic:
>   [...] If you chose filename extension matching, this is the
>   extension to be recognised (without the ., the \x0a specials are not
>   allowed).
This commit is contained in:
Berk D. Demir
2023-03-08 21:07:31 -08:00
parent a71e45961e
commit 147186a95b
+2 -2
View File
@@ -134,11 +134,11 @@ let
mask = ''\xff\xff\xff\xff'';
};
x86_64-windows = {
magicOrExtension = ".exe";
magicOrExtension = "exe";
recognitionType = "extension";
};
i686-windows = {
magicOrExtension = ".exe";
magicOrExtension = "exe";
recognitionType = "extension";
};
};