Support setting file times of directories on MS-Windows.
authorEli Zaretskii <eliz@gnu.org>
Fri, 5 Oct 2012 09:17:17 +0000 (11:17 +0200)
committerEli Zaretskii <eliz@gnu.org>
Fri, 5 Oct 2012 09:17:17 +0000 (11:17 +0200)
commit0d9f584b2c2a816670a22948615d7e0a5b93fc10
treef980325890f384eb4741d047e9796c8f04fc355d
parent379acb951495d947ff42da6fc79b39f2e5f2f623
Support setting file times of directories on MS-Windows.

 src/w32.c (utime): Open the file with FILE_FLAG_BACKUP_SEMANTICS, so
 that time stamps of directories could also be changed.  Don't
 request the too broad GENERIC_WRITE, only the more restrictive
 FILE_WRITE_ATTRIBUTES access rights.
 src/fileio.c (Fset_file_times): Special-case ignoring errors for
 directories only on MSDOS, not on MS-Windows.
src/ChangeLog
src/fileio.c
src/w32.c