From: Akim Demaille Date: Tue, 9 Sep 2003 12:28:18 +0000 (+0000) Subject: * lib/Autom4te/FileUtils.pm (&update_file): Be sure not to leave X-Git-Tag: AUTOCONF-2.57c~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=620582b4b832826fe28ad3118b7d776891432ec6;p=thirdparty%2Fautoconf.git * lib/Autom4te/FileUtils.pm (&update_file): Be sure not to leave trailing files. --- 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 }