public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
* setup: Fix for file names containing colons
@ 2015-09-25 14:27 Ken Brown
  2015-10-03 13:02 ` Jon Turney
  2015-10-12 19:41 ` Yaakov Selkowitz
  0 siblings, 2 replies; 3+ messages in thread
From: Ken Brown @ 2015-09-25 14:27 UTC (permalink / raw)
  To: cygwin-apps

[-- Attachment #1: Type: text/plain, Size: 162 bytes --]

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

[-- Attachment #2: 0001-Fix-creation-of-parent-directory-for-file-names-cont.patch --]
[-- Type: text/plain, Size: 659 bytes --]

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: setup: Fix for file names containing colons
  2015-09-25 14:27 setup: Fix for file names containing colons Ken Brown
@ 2015-10-03 13:02 ` Jon Turney
  2015-10-12 19:41 ` Yaakov Selkowitz
  1 sibling, 0 replies; 3+ messages in thread
From: Jon Turney @ 2015-10-03 13:02 UTC (permalink / raw)
  To: cygwin-apps

On 25/09/2015 15:27, Ken Brown wrote:
> 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,

Thanks very much for this patch.  I think it is correct.

This issue didn't show up in my testing as I have the terminus-fonts 
package installed, which explicitly creates the /etc/X11/fontpath.d 
directory.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: setup: Fix for file names containing colons
  2015-09-25 14:27 setup: Fix for file names containing colons Ken Brown
  2015-10-03 13:02 ` Jon Turney
@ 2015-10-12 19:41 ` Yaakov Selkowitz
  1 sibling, 0 replies; 3+ messages in thread
From: Yaakov Selkowitz @ 2015-10-12 19:41 UTC (permalink / raw)
  To: cygwin-apps

On Fri, 2015-09-25 at 10:27 -0400, Ken Brown wrote:
> 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

Thanks, pushed to master.  I'm working on a new version of setup now.

--
Yaakov



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-10-12 19:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-25 14:27 setup: Fix for file names containing colons Ken Brown
2015-10-03 13:02 ` Jon Turney
2015-10-12 19:41 ` Yaakov Selkowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).