MSYS2-packages/msys2-runtime-3.4/0049-fixup-path-conversion-Introduce-ability-to-switch-of.patch
Christoph Reiter 14e5524bed Add msys2-runtime-3.4
This will be the msys2-runtime variant that still works on Win7.
2024-03-15 17:55:50 +01:00

29 lines
974 B
Diff

From d40e640873870eda3b35fe3aa72a0e7dde65b7eb Mon Sep 17 00:00:00 2001
From: Christoph Reiter <reiter.christoph@gmail.com>
Date: Fri, 22 Dec 2023 09:32:39 +0100
Subject: [PATCH 49/N] fixup! path-conversion: Introduce ability to switch off
conversion.
It would just remove the argument instead of leaving it alone
---
winsup/cygwin/msys2_path_conv.cc | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/winsup/cygwin/msys2_path_conv.cc b/winsup/cygwin/msys2_path_conv.cc
index 1e9cdbe..f6e91a2 100644
--- a/winsup/cygwin/msys2_path_conv.cc
+++ b/winsup/cygwin/msys2_path_conv.cc
@@ -346,8 +346,10 @@ path_type find_path_start_and_type(const char** src, int recurse, const char* en
*/
const char *no_pathconv = getenv ("MSYS_NO_PATHCONV");
- if (no_pathconv)
- return NONE;
+ if (no_pathconv) {
+ *src = end;
+ return NONE;
+ }
/* Let's not convert ~/.file to ~C:\msys64\.file */
if (*it == '~') {