From: Don Armstrong Date: Fri, 29 Nov 2013 19:23:28 +0000 (-0800) Subject: we need to unlink the temporary file name, not the temporary file handle X-Git-Tag: release/2.6.0~271 X-Git-Url: https://git.donarmstrong.com/?p=debbugs.git;a=commitdiff_plain;h=aae281560aaba1950b00f66175b78fd7d7128c47 we need to unlink the temporary file name, not the temporary file handle --- diff --git a/Debbugs/Libravatar.pm b/Debbugs/Libravatar.pm index 99184ec..8dcbad0 100644 --- a/Debbugs/Libravatar.pm +++ b/Debbugs/Libravatar.pm @@ -159,7 +159,7 @@ sub retrieve_libravatar{ $temp_fn, $cache_location.'.'.$dest_type) == 0 or die "convert file failed"; - unlink($temp_fh); + unlink($temp_fn); }; if ($@) { unlink($cache_location.'.'.$dest_type) if -e $cache_location.'.'.$dest_type;