]> git.donarmstrong.com Git - debbugs.git/commitdiff
we need to unlink the temporary file name, not the temporary file handle
authorDon Armstrong <don@donarmstrong.com>
Fri, 29 Nov 2013 19:23:28 +0000 (11:23 -0800)
committerDon Armstrong <don@donarmstrong.com>
Fri, 29 Nov 2013 19:23:28 +0000 (11:23 -0800)
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";
                    $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;
         };
         if ($@) {
             unlink($cache_location.'.'.$dest_type) if -e $cache_location.'.'.$dest_type;