Mercurial > emacs
diff src/fileio.c @ 43799:b1abfedc2e1d
(Fcopy_file): Fix last change.
author | Jason Rumney <jasonr@gnu.org> |
---|---|
date | Sat, 09 Mar 2002 10:20:18 +0000 |
parents | 8bb81d691271 |
children | 3f86b146a02b |
line wrap: on
line diff
--- 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. */