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:
parent
1df61b3816
commit
5adebd84f3
1 changed files with 1 additions and 1 deletions
|
|
@ -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. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue