(Fcopy_file): Fix last change.
authorJason Rumney <jasonr@gnu.org>
Sat, 9 Mar 2002 10:20:18 +0000 (10:20 +0000)
committerJason Rumney <jasonr@gnu.org>
Sat, 9 Mar 2002 10:20:18 +0000 (10:20 +0000)
src/fileio.c

index bb39f2a..6abf102 100644 (file)
@@ -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.  */