setup: Fix for file names containing colons

Ken Brown kbrown@cornell.edu
Fri Sep 25 14:27:00 GMT 2015


In case this got lost in the thread about font reorganization, I'm 
attaching the patch I proposed in

   https://cygwin.com/ml/cygwin/2015-09/msg00223.html

Ken
-------------- next part --------------
From 6d8d74bcca48f3b5ce31e6cf9121eb204adb37a8 Mon Sep 17 00:00:00 2001
From: Ken Brown <kbrown@cornell.edu>
Date: Fri, 25 Sep 2015 10:18:31 -0400
Subject: [PATCH] Fix creation of parent directory for file names containing
 colons

* mkdir.cc (mkdir_p): Remove special treatment of colon in path
name.
---
 mkdir.cc | 2 --
 1 file changed, 2 deletions(-)

diff --git a/mkdir.cc b/mkdir.cc
index dabc256..84bb176 100644
--- a/mkdir.cc
+++ b/mkdir.cc
@@ -98,8 +98,6 @@ mkdir_p (int isadir, const char *in_path, mode_t mode)
 
   for (c = path; *c; c++)
     {
-      if (*c == ':')
-	slash = 0;
       if (*c == '/' || *c == '\\')
 	slash = c;
     }
-- 
2.5.3



More information about the Cygwin-apps mailing list