From 37fcd3da88c1292671c867756c117b64a69917d6 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Fri, 2 Sep 2016 18:12:19 +0000 Subject: Release 10.73.05 git-svn-id: http://svn.code.sf.net/p/netpbm/code/stable@2817 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- editor/pnmquantall | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'editor/pnmquantall') diff --git a/editor/pnmquantall b/editor/pnmquantall index 0890383e..2f1a3adf 100755 --- a/editor/pnmquantall +++ b/editor/pnmquantall @@ -56,6 +56,7 @@ use strict; use warnings; use English; use Fcntl; # gets open flags +use File::Copy; my $TRUE=1; my $FALSE = 0; @@ -163,7 +164,7 @@ sub remapFiles($$$$) { my $newFileName = $inFileName . $ext; unlink($newFileName); - rename($outputFileName, $newFileName) + File::Copy::move($outputFileName, $newFileName) or $errorR = "Rename to '$newFileName' failed."; } } -- cgit 1.4.1