patch to allow touch to work on HPFS (and others, maybe??)

Corinna Vinschen vinschen@redhat.com
Mon Feb 7 17:19:00 GMT 2005


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.



More information about the Cygwin-patches mailing list