Add a script to install TkImg
[git/jnareb-git.git] / src / rt / patches / 0003-p2w-for-msysgit-Check-if-string-starts-with-.-or.patch
blobf54341067c0ac9cdb810bf0a7fd38b9a9c1e056d
1 From 446c37bf8f4e08dfca20fedee8de3f5dfe1b32ef Mon Sep 17 00:00:00 2001
2 From: Steffen Prohaska <prohaska@zib.de>
3 Date: Sat, 10 May 2008 20:30:09 +0200
4 Subject: [PATCH] p2w for msysgit: Check if string starts with "." or "/" before considering it a pathlist
6 ---
7 src/winsup/cygwin/path.cc | 2 ++
8 1 files changed, 2 insertions(+), 0 deletions(-)
10 diff --git a/source/winsup/cygwin/path.cc b/source/winsup/cygwin/path.cc
11 index 59827e3..8d73b09 100644
12 --- a/source/winsup/cygwin/path.cc
13 +++ b/source/winsup/cygwin/path.cc
14 @@ -3157,6 +3157,8 @@ msys_p2w (char const * const path)
15 // remember that this is a recursive routine.
16 //
17 && (strchr ("-\"\'", spath[0]) == 0)
18 + // Prevent modification if string does not start with "." or "/".
19 + && (strchr ("./", spath[0]) > 0)
20 //
21 // Prevent ``foo:echo /bar/baz'' from being considered a path list.
22 //
23 --
24 1.5.5.1015.g9d258