1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-21 20:13:29 -08:00

(Fcopy_file): Fix last change.

This commit is contained in:
Jason Rumney 2002-03-09 10:16:40 +00:00
parent 1df61b3816
commit 5adebd84f3

View file

@ -2350,7 +2350,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. */