Managed mounts fail to support some legal POSIX filenames

Jonathan Lennox lennox@cs.columbia.edu
Tue Feb 20 19:25:00 GMT 2007


While poking around with managed mounts following yesterday's mail, it
occured to me that the managed-mount filename munging misses some cases,
namely, filenames with trailing spaces, and filenames that look like Windows
short-form names corresponding to existing file names.

Here's an example:

$ mkdir managed
$ mount -o managed `cygpath -aw managed` $PWD/managed
$ cd managed 
$ touch foo 'foo   '
$ ls -l
total 0
-rw-r--r-- 1 Jonathan None 0 Feb 20 13:48 foo
$ rm foo 
$ touch longfilename.c longfi~1.c
$ ls -l
total 0
-rw-r--r-- 1 Jonathan None 0 Feb 20 13:48 longfilename.c
$ rm longfilename.c 
$ cd ..
$ umount `cygpath -aw managed`
$ rm -r managed

Fixing the first of these should be easy; space just needs to be handled the
same as dot in fnmunge, and because of the bug existing managed mounts can't
have files with trailing spaces.

The second problem is trickier, since you'd want to keep compatibility with
filenames containing tildes on existing managed mounts.

-- 
Jonathan Lennox
lennox at cs dot columbia dot edu

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list