From: Joey Hess Date: Sun, 27 Jun 2010 17:49:51 +0000 (-0400) Subject: hnb: Fixed broken use of mkstemp that had caused dangling temp files, and prevented... X-Git-Tag: 3.20100704~25 X-Git-Url: http://git.tremily.us/?p=ikiwiki.git;a=commitdiff_plain;h=bb5193fde1dbe5ebffe84deddc6ed4aac80a36b0 hnb: Fixed broken use of mkstemp that had caused dangling temp files, and prevented actually rendering hnb files. --- diff --git a/IkiWiki/Plugin/hnb.pm b/IkiWiki/Plugin/hnb.pm index 32c9cf3ad..5157a6b93 100644 --- a/IkiWiki/Plugin/hnb.pm +++ b/IkiWiki/Plugin/hnb.pm @@ -33,8 +33,8 @@ sub htmlize (@) { # hnb outputs version number etc. every time to STDOUT, so # using files makes it easier to seprarate. - my $tmpin = mkstemp( "/tmp/ikiwiki-hnbin.XXXXXXXXXX" ); - my $tmpout = mkstemp( "/tmp/ikiwiki-hnbout.XXXXXXXXXX" ); + my ($infh, $tmpin) = mkstemp( "/tmp/ikiwiki-hnbin.XXXXXXXXXX" ); + my ($outfh, $tmpout) = mkstemp( "/tmp/ikiwiki-hnbout.XXXXXXXXXX" ); open(TMP, '>', $tmpin) or die "Can't write to $tmpin: $!"; print TMP $params{content}; diff --git a/debian/changelog b/debian/changelog index ae1d23479..15ae21a55 100644 --- a/debian/changelog +++ b/debian/changelog @@ -12,6 +12,8 @@ ikiwiki (3.20100624) UNRELEASED; urgency=low * Fixed some confusion and bugginess about whether rcs_getctime/rcs_getmtime were passed absolute or relative filenames. (Make it relative like everything else.) + * hnb: Fixed broken use of mkstemp that had caused dangling temp files, + and prevented actually rendering hnb files. -- Joey Hess Wed, 23 Jun 2010 15:30:04 -0400