]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fcopy_file) [WINDOWS_NT]: Reverse logic for setting
authorJason Rumney <jasonr@gnu.org>
Sat, 1 Feb 2003 01:17:09 +0000 (01:17 +0000)
committerJason Rumney <jasonr@gnu.org>
Sat, 1 Feb 2003 01:17:09 +0000 (01:17 +0000)
timestamp.

src/ChangeLog
src/fileio.c

index c02f362687885e4e5bab3834744e50a42360105f..b7090957a8db0eca8d775e2790558224cdc4d127 100644 (file)
@@ -1,3 +1,8 @@
+2003-02-01  Jason Rumney  <jasonr@gnu.org>
+
+       * fileio.c (Fcopy_file) [WINDOWS_NT]: Reverse logic for setting
+       timestamp.
+
 2003-01-30  Harald Maier  <Harald.Maier.BW@t-online.de>  (tiny change)
 
        * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
index f904a1146eeaf0621484dabbd1581a38b34fb6ba..53fddacde04422eea12d46264351e108575c65b2 100644 (file)
@@ -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;