[PATCH 05/18] gitweb: Regression fix concerning binary output of files
- From
John 'Warthog9' Hawley <warthog9@eaglescrag.net>
- Date
- Dec 9, 2010, 21:57 UTC
- Message-ID
- <1291931844-28454-6-git-send-email-warthog9@eaglescrag.net>
- In-Reply-To
- <1291931844-28454-1-git-send-email-warthog9@eaglescrag.net>
This solves the regression introduced with v7.2 of the gitweb-caching code, fix proposed by Jakub in his e-mail.
Signed-off-by: John 'Warthog9' Hawley <warthog9@eaglescrag.net> --- gitweb/gitweb.perl | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 3c3ff08..f2ef3da 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -5664,7 +5664,7 @@ sub git_blob_plain { if ($caching_enabled) { open BINOUT, '>', $fullhashbinpath or die_error(500, "Could not open bin dump file"); }else{ - open BINOUT, '>', \$fullhashbinpath or die_error(500, "Could not open bin dump file"); + open BINOUT, '>&', \$fullhashbinpath or die_error(500, "Could not open bin dump file"); } binmode BINOUT, ':raw'; print BINOUT <$fd>; @@ -5957,7 +5957,7 @@ sub git_snapshot { if ($caching_enabled) { open BINOUT, '>', $fullhashbinpath or die_error(500, "Could not open bin dump file"); }else{ - open BINOUT, '>', \$fullhashbinpath or die_error(500, "Could not open bin dump file"); + open BINOUT, '>&', \$fullhashbinpath or die_error(500, "Could not open bin dump file"); } binmode BINOUT, ':raw'; print BINOUT <$fd>;
-- 1.7.2.3