This integrates the patches from https://github.com/msys2/msys2-runtime/pull/102 and from https://github.com/msys2/msys2-runtime/pull/101 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
26 lines
829 B
Diff
26 lines
829 B
Diff
From 3578452c55a3754bb64f8bfd19b4e194f6bf2ef2 Mon Sep 17 00:00:00 2001
|
|
From: SquallATF <squallatf@gmail.com>
|
|
Date: Mon, 10 Sep 2018 11:32:18 +0300
|
|
Subject: [PATCH 17/N] Fix native symbolic link spawn passing wrong arg0
|
|
|
|
---
|
|
winsup/cygwin/spawn.cc | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc
|
|
index 8359f12..4f28335 100644
|
|
--- a/winsup/cygwin/spawn.cc
|
|
+++ b/winsup/cygwin/spawn.cc
|
|
@@ -51,7 +51,7 @@ perhaps_suffix (const char *prog, path_conv& buf, int& err, unsigned opt)
|
|
|
|
err = 0;
|
|
debug_printf ("prog '%s'", prog);
|
|
- buf.check (prog, PC_SYM_FOLLOW | PC_NULLEMPTY | PC_POSIX,
|
|
+ buf.check (prog, PC_SYM_FOLLOW | PC_SYM_NOFOLLOW_REP | PC_NULLEMPTY | PC_POSIX,
|
|
(opt & FE_DLL) ? stat_suffixes : exe_suffixes);
|
|
|
|
if (buf.isdir ())
|
|
--
|
|
2.37.3
|
|
|