From 35a89cbe955bfdf96903497ffee364b4f522f4b0 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 17 May 2002 08:32:29 +0000 Subject: * times.cc (utimes): Use FILE_WRITE_ATTRIBUTES even on 9x/Me when opening file for writing timestamp. * wincap.cc: Remove flag has_specific_access_rights. * wincap.h: Ditto. --- winsup/cygwin/times.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'winsup/cygwin/times.cc') diff --git a/winsup/cygwin/times.cc b/winsup/cygwin/times.cc index 96b98751d..21b0a31e2 100644 --- a/winsup/cygwin/times.cc +++ b/winsup/cygwin/times.cc @@ -440,12 +440,11 @@ utimes (const char *path, struct timeval *tvp) } /* MSDN suggests using FILE_FLAG_BACKUP_SEMANTICS for accessing - the times of directories. FIXME: what about Win95??? */ + the times of directories. */ /* Note: It's not documented in MSDN that FILE_WRITE_ATTRIBUTES is sufficient to change the timestamps... */ HANDLE h = CreateFileA (win32.get_win32 (), - wincap.has_specific_access_rights () ? - FILE_WRITE_ATTRIBUTES : GENERIC_WRITE, + FILE_WRITE_ATTRIBUTES, FILE_SHARE_READ | FILE_SHARE_WRITE, &sec_none_nih, OPEN_EXISTING, -- cgit v1.2.3