managed mounts and "

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

managed mounts and "

Eric Blake (cygwin)
I found it annoying that managed mounts can handle non-printing
characters, but not several of the remaining Windows' forbidden
characters, such as double quotes.

$ cd managed
$ touch `printf '\a'`
$ touch `printf '"'`
touch: cannot touch `"': No such file or directory

2006-01-04  Eric Blake  <[hidden email]>

        * path.cc (dot_special_chars): Add ", <, >, and |.

Index: path.cc
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/path.cc,v
retrieving revision 1.398
diff -u -r1.398 path.cc
--- path.cc     27 Dec 2005 18:10:49 -0000      1.398
+++ path.cc     4 Jan 2006 15:58:41 -0000
@@ -1,6 +1,6 @@
 /* path.cc: path support.
 
-   Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Red
Hat, Inc.
+   Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
Red Hat, Inc.
 
 This file is part of Cygwin.
 
@@ -1331,6 +1331,7 @@
     "\021" "\022" "\023" "\024" "\025" "\026" "\027" "\030"
     "\031" "\032" "\033" "\034" "\035" "\036" "\037"
     ":"    "\\"   "*"    "?"    "%"
+    "\""   "<"    ">"    "|"
     "A"    "B"    "C"    "D"    "E"    "F"    "G"    "H"
     "I"    "J"    "K"    "L"    "M"    "N"    "O"    "P"
     "Q"    "R"    "S"    "T"    "U"    "V"    "W"    "X"


--
Eric Blake



Reply | Threaded
Open this post in threaded view
|

Re: managed mounts and "

Christopher Faylor-2
On Wed, Jan 04, 2006 at 04:09:03PM +0000, Eric Blake wrote:
>2006-01-04  Eric Blake  <[hidden email]>
>
> * path.cc (dot_special_chars): Add ", <, >, and |.

This patch did not apply cleanly but I have fixed it up and applied it.
Maybe submitting it as an attachment would help next time?  Also, I
think your previous patch messed with white space in the file so that
also required extra effort to apply.  FYI.

Thanks for this patch.

cgf