Commit 147186a9 authored by Berk D. Demir's avatar Berk D. Demir
Browse files

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).
parent a71e4596
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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";
    };
  };