From 620582b4b832826fe28ad3118b7d776891432ec6 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Tue, 9 Sep 2003 12:28:18 +0000 Subject: [PATCH] * lib/Autom4te/FileUtils.pm (&update_file): Be sure not to leave trailing files. --- ChangeLog | 5 +++++ lib/Autom4te/FileUtils.pm | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 64bd9087..5fd78add 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-09-09 Akim Demaille + + * lib/Autom4te/FileUtils.pm (&update_file): Be sure not to leave + trailing files. + 2003-09-07 Paul Eggert * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): diff --git a/lib/Autom4te/FileUtils.pm b/lib/Autom4te/FileUtils.pm index 5c722bc3..d4e25bba 100644 --- a/lib/Autom4te/FileUtils.pm +++ b/lib/Autom4te/FileUtils.pm @@ -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 } -- 2.47.2