hnb: Fixed broken use of mkstemp that had caused dangling temp files, and prevented actually rendering hnb files.

master
Joey Hess 2010-06-27 13:49:51 -04:00
parent 7399f56607
commit bb5193fde1
2 changed files with 4 additions and 2 deletions

View File

@ -33,8 +33,8 @@ sub htmlize (@) {
# hnb outputs version number etc. every time to STDOUT, so # hnb outputs version number etc. every time to STDOUT, so
# using files makes it easier to seprarate. # using files makes it easier to seprarate.
my $tmpin = mkstemp( "/tmp/ikiwiki-hnbin.XXXXXXXXXX" ); my ($infh, $tmpin) = mkstemp( "/tmp/ikiwiki-hnbin.XXXXXXXXXX" );
my $tmpout = mkstemp( "/tmp/ikiwiki-hnbout.XXXXXXXXXX" ); my ($outfh, $tmpout) = mkstemp( "/tmp/ikiwiki-hnbout.XXXXXXXXXX" );
open(TMP, '>', $tmpin) or die "Can't write to $tmpin: $!"; open(TMP, '>', $tmpin) or die "Can't write to $tmpin: $!";
print TMP $params{content}; print TMP $params{content};

2
debian/changelog vendored
View File

@ -12,6 +12,8 @@ ikiwiki (3.20100624) UNRELEASED; urgency=low
* Fixed some confusion and bugginess about whether * Fixed some confusion and bugginess about whether
rcs_getctime/rcs_getmtime were passed absolute or relative filenames. rcs_getctime/rcs_getmtime were passed absolute or relative filenames.
(Make it relative like everything else.) (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 <joeyh@debian.org> Wed, 23 Jun 2010 15:30:04 -0400 -- Joey Hess <joeyh@debian.org> Wed, 23 Jun 2010 15:30:04 -0400