From: Sylvain Rabot Date: Thu, 16 Dec 2010 21:43:21 GMT Subject: [PATCH 3/3] gitweb: remove test when closing file descriptor Message-ID: <1292535801-7421-4-git-send-email-sylvain@abstraction.fr> In-Reply-To: <1292535801-7421-1-git-send-email-sylvain@abstraction.fr> it happens that closing file descriptor fails whereas the blob is perfectly readable. Signed-off-by: Sylvain Rabot --- gitweb/gitweb.perl | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 9398475..9a885b1 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -3450,8 +3450,7 @@ sub run_highlighter { my ($fd, $highlight, $syntax) = @_; return $fd unless ($highlight && defined $syntax); - close $fd - or die_error(404, "Reading blob failed"); + close $fd; open $fd, quote_command(git_cmd(), "cat-file", "blob", $hash)." | ". quote_command($highlight_bin). " --xhtml --fragment --syntax $syntax |" -- 1.7.3.2