From: Paul Eggert Date: Sun, 9 Feb 2025 18:00:11 +0000 (-0800) Subject: Port install_aux_file to OS/2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2f64dcd048b08bb90ec44b26f4cd6b729112a28e;p=thirdparty%2Fautoconf.git Port install_aux_file to OS/2 * bin/autoreconf.in (install_aux_file): Port to OS/2, which does not allow file name operations on open files. Problem reported by KO Myung-Hun in: https://lists.gnu.org/r/autoconf-patches/2025-02/msg00001.html --- diff --git a/bin/autoreconf.in b/bin/autoreconf.in index 74c9890e3..a5ffc6fa7 100644 --- a/bin/autoreconf.in +++ b/bin/autoreconf.in @@ -400,8 +400,10 @@ sub install_aux_file or fatal "rm -f $dest: $!"; } my ($temp, $tempname) = tempfile (UNLINK => 0, DIR => $destdir); - copy ($src, $tempname) + copy ($src, $temp) or fatal "copying $src to $tempname: $!"; + close ($temp) + or fatal "closing $tempname: $!"; make_executable ($tempname) if -x $src; update_file ($tempname, $dest, $force); }