forked from msys2/MSYS2-packages
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Synchronize with MSYS2's current version of the MSYS2 runtime
Most notably, this integrates the fixes from msys2/msys2-runtime#179. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
- Loading branch information
Showing
4 changed files
with
76 additions
and
6 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
msys2-runtime/0062-fixup-Add-functionality-for-converting-UNIX-paths-in.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
From 0e7d0755a911149d0c517c6b93887b3155a9cfe0 Mon Sep 17 00:00:00 2001 | ||
From: Kai Pastor <dg0yt@darc.de> | ||
Date: Tue, 21 Nov 2023 09:24:03 +0100 | ||
Subject: [PATCH 62/N] fixup! Add functionality for converting UNIX paths in | ||
arguments and environment variables to Windows form for native Win32 | ||
applications. | ||
|
||
Don't memchr behind end, it+1 | ||
--- | ||
winsup/cygwin/msys2_path_conv.cc | 7 +++++++ | ||
1 file changed, 7 insertions(+) | ||
|
||
diff --git a/winsup/cygwin/msys2_path_conv.cc b/winsup/cygwin/msys2_path_conv.cc | ||
index 2bdf0ae..d4f0192 100644 | ||
--- a/winsup/cygwin/msys2_path_conv.cc | ||
+++ b/winsup/cygwin/msys2_path_conv.cc | ||
@@ -349,6 +349,13 @@ path_type find_path_start_and_type(const char** src, int recurse, const char* en | ||
|
||
path_type result = NONE; | ||
|
||
+ if (it + 1 == end) { | ||
+ switch (*it) { | ||
+ case '/': return ROOTED_PATH ; | ||
+ default: return SIMPLE_WINDOWS_PATH; | ||
+ } | ||
+ } | ||
+ | ||
if (isalpha(*it) && *(it + 1) == ':') { | ||
if (*(it + 2) == '\\') { | ||
return SIMPLE_WINDOWS_PATH; |
34 changes: 34 additions & 0 deletions
34
msys2-runtime/0063-fixup-Add-functionality-for-converting-UNIX-paths-in.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
From 677ece60fc37b0c5d336db1e345a4c33ffff15f6 Mon Sep 17 00:00:00 2001 | ||
From: Kai Pastor <dg0yt@darc.de> | ||
Date: Tue, 21 Nov 2023 09:25:58 +0100 | ||
Subject: [PATCH 63/N] fixup! Add functionality for converting UNIX paths in | ||
arguments and environment variables to Windows form for native Win32 | ||
applications. | ||
|
||
Don't memchr behind end, it2 | ||
--- | ||
winsup/cygwin/msys2_path_conv.cc | 4 ++-- | ||
1 file changed, 2 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/winsup/cygwin/msys2_path_conv.cc b/winsup/cygwin/msys2_path_conv.cc | ||
index d4f0192..5c59291 100644 | ||
--- a/winsup/cygwin/msys2_path_conv.cc | ||
+++ b/winsup/cygwin/msys2_path_conv.cc | ||
@@ -431,7 +431,7 @@ path_type find_path_start_and_type(const char** src, int recurse, const char* en | ||
if (isalpha(ch) && (*(it2+1) == ':') && (*(it2+2) == '/')) { | ||
return SIMPLE_WINDOWS_PATH; | ||
} | ||
- if (ch == '/'&& memchr(it2, ',', end - it) == NULL) { | ||
+ if (ch == '/'&& memchr(it2, ',', end - it2) == NULL) { | ||
*src = it2; | ||
return find_path_start_and_type(src, true, end); | ||
} | ||
@@ -458,7 +458,7 @@ path_type find_path_start_and_type(const char** src, int recurse, const char* en | ||
} else { | ||
return POSIX_PATH_LIST; | ||
} | ||
- } else if (memchr(it2, '=', end - it) == NULL) { | ||
+ } else if (memchr(it2, '=', end - it2) == NULL) { | ||
return SIMPLE_WINDOWS_PATH; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
be826601df87b13be6038bb7e23a01d92be7ef07 | ||
b039495115cdb838e2699ebb1673da471954af9c |