diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2002-05-17 08:32:29 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2002-05-17 08:32:29 +0000 |
commit | 35a89cbe955bfdf96903497ffee364b4f522f4b0 (patch) | |
tree | 1216025a2ec7c9a735c98842bd0afee2b6d896eb /winsup/cygwin/times.cc | |
parent | 6935231fdeaaac4db13506f6f54ffb3b3d4f7e1e (diff) | |
download | cygnal-35a89cbe955bfdf96903497ffee364b4f522f4b0.tar.gz cygnal-35a89cbe955bfdf96903497ffee364b4f522f4b0.tar.bz2 cygnal-35a89cbe955bfdf96903497ffee364b4f522f4b0.zip |
* 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.
Diffstat (limited to 'winsup/cygwin/times.cc')
-rw-r--r-- | winsup/cygwin/times.cc | 5 |
1 files changed, 2 insertions, 3 deletions
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, |