Commit 02cca86b authored by Jason Rumney's avatar Jason Rumney
Browse files

(Fcopy_file): Fix last change.

parent 2f147815
......@@ -2417,7 +2417,7 @@ A prefix arg makes KEEP-TIME non-nil. */)
/* Ensure file is writable while its modified time is set. */
attributes = GetFileAttributes (filename);
SetFileAttributes (filename, attributes ^ FILE_ATTRIBUTE_READONLY);
SetFileAttributes (filename, attributes & ~FILE_ATTRIBUTE_READONLY);
if (set_file_times (filename, now, now))
/* Restore original attributes. */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment