From 12770aefc82be37a73c017094d8c9c6af1b765f7 Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Sat, 1 Feb 2003 01:17:09 +0000 Subject: [PATCH] (Fcopy_file) [WINDOWS_NT]: Reverse logic for setting timestamp. --- src/ChangeLog | 5 +++++ src/fileio.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index c02f3626878..b7090957a8d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2003-02-01 Jason Rumney + + * fileio.c (Fcopy_file) [WINDOWS_NT]: Reverse logic for setting + timestamp. + 2003-01-30 Harald Maier (tiny change) * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build diff --git a/src/fileio.c b/src/fileio.c index f904a1146ee..53fddacde04 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -2356,7 +2356,8 @@ A prefix arg makes KEEP-TIME non-nil.") XSTRING (encoded_newname)->data, FALSE)) report_file_error ("Copying file", Fcons (file, Fcons (newname, Qnil))); - else if (!NILP (keep_time)) + /* CopyFile retains the timestamp by default. */ + else if (NILP (keep_time)) { EMACS_TIME now; DWORD attributes; -- 2.39.2