diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-23 21:43:23 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-23 21:43:23 +0300 |
| commit | a66f4c64e9d1591f042a94d6f3bef3b4298a4d1c (patch) | |
| tree | 747de08b6ada4300afb4124da9feff0cc66b96a7 /vendor/patches | |
| parent | 5981ba426e8ed8f6785195a03cc0d8a190173e61 (diff) | |
fix: force system conpty on windows
refs #761
Diffstat (limited to 'vendor/patches')
| -rw-r--r-- | vendor/patches/portable-pty/0001-force-system-conpty.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/vendor/patches/portable-pty/0001-force-system-conpty.patch b/vendor/patches/portable-pty/0001-force-system-conpty.patch new file mode 100644 index 00000000..6074df57 --- /dev/null +++ b/vendor/patches/portable-pty/0001-force-system-conpty.patch @@ -0,0 +1,37 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: herdr maintainers <maintainers@herdr.dev> +Date: Tue, 23 Jun 2026 00:00:00 +0000 +Subject: [PATCH] force system ConPTY + +Herdr should use the ConPTY functions exported by kernel32.dll and must not +load a bare conpty.dll from PATH. portable-pty's sideload probe is intentional +for WezTerm's bundled OpenConsole.exe/conpty.dll pair, but Herdr does not ship +that pair. + +Herdr issue: https://github.com/ogulcancelik/herdr/issues/761 +Vendored base: portable-pty 0.9.0 +--- + vendor/portable-pty/src/win/psuedocon.rs | 9 +-------- + 1 file changed, 1 insertion(+), 8 deletions(-) + +diff --git a/vendor/portable-pty/src/win/psuedocon.rs b/vendor/portable-pty/src/win/psuedocon.rs +index 0000000..0000000 100644 +--- a/vendor/portable-pty/src/win/psuedocon.rs ++++ b/vendor/portable-pty/src/win/psuedocon.rs +@@ -49,14 +49,7 @@ fn load_conpty() -> ConPtyFuncs { + "this system does not support conpty. Windows 10 October 2018 or newer is required", + ); +- +- // We prefer to use a sideloaded conpty.dll and openconsole.exe host deployed +- // alongside the application. We check for this after checking for kernel +- // support so that we don't try to proceed and do something crazy. +- if let Ok(sideloaded) = ConPtyFuncs::open(Path::new("conpty.dll")) { +- sideloaded +- } else { +- kernel +- } ++ ++ kernel + } + + lazy_static! { |
