From 536130f788a060a2f1984d65e9c0c19717b786c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Tue, 9 Sep 2025 21:20:18 +0800 Subject: [PATCH] wpa_supplicant: patch ext_password_file bug Commit message from patch: > When searching for a matching key in the external password file, strings > were only compared up to the length of the key in the file. This meant > searching for key "foo" could retrieve the incorrect password if keys > "f" or "fo" were defined earlier in the file. --- pkgs/os-specific/linux/wpa_supplicant/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/os-specific/linux/wpa_supplicant/default.nix b/pkgs/os-specific/linux/wpa_supplicant/default.nix index 32481a4c757e..3819f40b85ff 100644 --- a/pkgs/os-specific/linux/wpa_supplicant/default.nix +++ b/pkgs/os-specific/linux/wpa_supplicant/default.nix @@ -39,6 +39,11 @@ stdenv.mkDerivation rec { url = "https://w1.fi/cgit/hostap/patch/?id=c330b5820eefa8e703dbce7278c2a62d9c69166a"; hash = "sha256-5ti5OzgnZUFznjU8YH8Cfktrj4YBzsbbrEbNvec+ppQ="; }) + (fetchpatch { + name = "ensure-full-key-match"; + url = "https://git.w1.fi/cgit/hostap/patch/?id=1ce37105da371c8b9cf3f349f78f5aac77d40836"; + hash = "sha256-leCk0oexNBZyVK5Q5gR4ZcgWxa0/xt/aU+DssTa0UwE="; + }) ]; # TODO: Patch epoll so that the dbus actually responds