# HG changeset patch # User Jason Rumney # Date 1015669218 0 # Node ID b1abfedc2e1df0aea7f54ddd006cda95b15b082c # Parent ff7e1d919ec06af4fe948541e63516875cbe8bae (Fcopy_file): Fix last change. diff -r ff7e1d919ec0 -r b1abfedc2e1d src/fileio.c --- a/src/fileio.c Sat Mar 09 09:30:18 2002 +0000 +++ b/src/fileio.c Sat Mar 09 10:20:18 2002 +0000 @@ -2417,7 +2417,7 @@ /* 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. */