Mail Archives: cygwin/2009/09/21/06:43:38
On Sep 3 10:38, Vince Indriolo wrote:
> Interesting, the location of the file seems to matter.
> [...]
> For a file on my desktop:
> $ ls -l foo
> -rwx------+ 1 vince None 6 Sep 3 10:28 foo
> $ ls -l .\\foo
> -rw-r--r-- 1 vince None 6 Sep 3 10:28 .\foo
It's not the location, it's the use of backslashes. Native Windows
paths are treated differently than POSIX paths:
Native Windows path ==> Windows default security
POSIX path ==> POSIX security
Cygdrive paths are mounted as non-POSIX paths by default. See
the output of mount:
$ mount
[...]
C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto)
D: on /cygdrive/d type vfat (binary,posix=0,user,noumount,auto)
If you want to change that, create a cygdrive entry in /etc/fstab
which sets the mount option "posix=1".
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
- Raw text -