diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-07-08 12:16:36 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-07-08 12:16:36 -0400 |
commit | 6f3c980e2b2e618eeccfd64418eb508de54982b4 (patch) | |
tree | 0682728ac0ce9579d0b36874e4410821bd1f99f3 | |
parent | 6fc21e9d3d04c5bf572b7dcf3f5e6ebd1adcd457 (diff) |
undef $fh before opening
-rw-r--r-- | IkiWiki/Plugin/attachment.pm | 1 | ||||
-rw-r--r-- | doc/bugs/attachment:_failed_to_get_filehandle.mdwn | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/attachment.pm b/IkiWiki/Plugin/attachment.pm index ed1cd61fe..53d826178 100644 --- a/IkiWiki/Plugin/attachment.pm +++ b/IkiWiki/Plugin/attachment.pm @@ -142,6 +142,7 @@ sub formbuilder (@) { #{{{ if (! defined $fh || ! ref $fh) { # even that doesn't always work, # fall back to opening the tempfile + $fh=undef; open($fh, "<", $tempfile) || error("failed to open $tempfile: $!"); } } diff --git a/doc/bugs/attachment:_failed_to_get_filehandle.mdwn b/doc/bugs/attachment:_failed_to_get_filehandle.mdwn index 8a9e1dde0..765082cf9 100644 --- a/doc/bugs/attachment:_failed_to_get_filehandle.mdwn +++ b/doc/bugs/attachment:_failed_to_get_filehandle.mdwn @@ -70,6 +70,8 @@ the error message like below: >>>>>>>> I can rebuild Debian stable source package with CGI for Perl. Maybe it will help me? What do you think? --[[Paweł|ptecza]] +>>>>>>>>> Silly thinko on my part, fixed that in git.. --[[Joey]] + The same message I can see in the Apache log file. There is also following warning: |