diff options
author | Eli Zaretskii <eliz@gnu.org> | 2012-10-05 11:17:17 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2012-10-05 11:17:17 +0200 |
commit | 0d9f584b2c2a816670a22948615d7e0a5b93fc10 (patch) | |
tree | f980325890f384eb4741d047e9796c8f04fc355d /src/fileio.c | |
parent | 379acb951495d947ff42da6fc79b39f2e5f2f623 (diff) | |
download | emacs-0d9f584b2c2a816670a22948615d7e0a5b93fc10.tar.gz |
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.
Diffstat (limited to 'src/fileio.c')
-rw-r--r-- | src/fileio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c index 9ce9e7b8395..b4eda01afcc 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -3034,7 +3034,7 @@ Use the current time if TIMESTAMP is nil. TIMESTAMP is in the format of { if (set_file_times (-1, SSDATA (encoded_absname), t, t)) { -#ifdef DOS_NT +#ifdef MSDOS struct stat st; /* Setting times on a directory always fails. */ |