]> git.donarmstrong.com Git - debbugs.git/blobdiff - Debbugs/Libravatar.pm
we need to unlink the temporary file name, not the temporary file handle
[debbugs.git] / Debbugs / Libravatar.pm
index 99184ec155c720226fba75283827d8cf4c95207a..8dcbad09033055b925a631b077005c4b89163014 100644 (file)
@@ -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;