]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* lib/Autom4te/FileUtils.pm (&update_file): Be sure not to leave
authorAkim Demaille <akim@epita.fr>
Tue, 9 Sep 2003 12:28:18 +0000 (12:28 +0000)
committerAkim Demaille <akim@epita.fr>
Tue, 9 Sep 2003 12:28:18 +0000 (12:28 +0000)
trailing files.

ChangeLog
lib/Autom4te/FileUtils.pm

index 64bd9087186337c4a253435ecff221eff727dec3..5fd78adde69cfba432c047147f8da38f6dd47110 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-09-09  Akim Demaille  <akim@epita.fr>
+
+       * lib/Autom4te/FileUtils.pm (&update_file): Be sure not to leave
+       trailing files.
+
 2003-09-07  Paul Eggert  <eggert@twinsun.com>
 
        * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS):
index 5c722bc34945f901dd6ff6fa1ff5173d6baa9ebd..d4e25bba615c042fc713c76ded567c3a586f0b08 100644 (file)
@@ -153,6 +153,8 @@ sub update_file ($$)
     {
       # File didn't change, so don't update its mod time.
       msg 'note', "`$to' is unchanged";
+      unlink ($from)
+        or fatal "cannot not remove $from: $!";
       return
     }