git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] hash-object: fix descriptor leak with --literally

From
Jeff King <peff@peff.net>
Date
Jan 19, 2023, 08:20 UTC
Message-ID
<Y8j9OP6EeGN6nBDg@coredump.intra.peff.net>
In-Reply-To
<xmqqtu0n2g67.fsf@gitster.g>
On Wed, Jan 18, 2023 at 10:26:40PM -0800, Junio C Hamano wrote:
Show 12 quoted lines
> Jeff King <peff@peff.net> writes:
> 
> > In hash_object(), we open a descriptor for each file to hash (whether we
> > got the filename from the command line or --stdin-paths), but never
> > close it. For the traditional code path which feeds the result to
> > index_fd(), this is OK; it closes the descriptor for us.
> >
> > But 5ba9a93b39 (hash-object: add --literally option, 2014-09-11) a
> > second code path which does not close the descriptor.
> 
> A sentence without verb?  "5ba9 (hash-...) added a second code path,
> which does not close the descriptor." or something?
Yes, the missing word was "added". Thanks.
-Peff
Previous: Junio C Hamano
Message 3 of 3 in “hash-object: fix descriptor leak with --literally”
  1. hash-object: fix descriptor leak with --literallyJeff King, Jan 19, 2023
  2. Junio C HamanoJan 19, 2023
  3. Jeff KingJan 19, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.