]> git.eshelyaron.com Git - emacs.git/commitdiff
(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 bb39f2a153bb65023eeee9b097d6a4ac9eef7e09..6abf102aa33ac271e5dd8b8edac21085b62c421a 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.  */