This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: patch to allow touch to work on HPFS (and others, maybe??)
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: Cygwin Patches <cygwin-patches at sources dot redhat dot com>
- Date: Mon, 7 Feb 2005 18:19:25 +0100
- Subject: Re: patch to allow touch to work on HPFS (and others, maybe??)
- References: <0IBJ002LDVDB2K@pmismtp01.mcilink.com>
- Reply-to: cygwin-patches at cygwin dot com
On Feb 7 09:34, Mark Paulus wrote:
> Attached is a patch that works to allow me to do a
> touch on my mounted HPFS filesystem. I'm not sure
> about clearcase, or others, but it works on HPFS and
> NTFS.
>
> * times.cc: Use GENERIC_WRITE instead of FILE_WRITE_ATTRIBUTES.
That's reverting a more than three years old patch. Please read
http://cygwin.com/ml/cygwin/2001-08/msg00666.html which explains why
opening with GENERIC_WRITE is not generally a good idea. If you want
to get it working for HPFS or whatever, use the FS flags present in
the local path_conv variable called win32 to conditionalize the call.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader mailto:cygwin@cygwin.com
Red Hat, Inc.