diff options
Diffstat (limited to 'src')
| -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 bb39f2a153b..6abf102aa33 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -2417,7 +2417,7 @@ A prefix arg makes KEEP-TIME non-nil. */) | |||
| 2417 | 2417 | ||
| 2418 | /* Ensure file is writable while its modified time is set. */ | 2418 | /* Ensure file is writable while its modified time is set. */ |
| 2419 | attributes = GetFileAttributes (filename); | 2419 | attributes = GetFileAttributes (filename); |
| 2420 | SetFileAttributes (filename, attributes ^ FILE_ATTRIBUTE_READONLY); | 2420 | SetFileAttributes (filename, attributes & ~FILE_ATTRIBUTE_READONLY); |
| 2421 | if (set_file_times (filename, now, now)) | 2421 | if (set_file_times (filename, now, now)) |
| 2422 | { | 2422 | { |
| 2423 | /* Restore original attributes. */ | 2423 | /* Restore original attributes. */ |