Re: [PATCH] Fix handle leak in builtin-pack-objects

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 26 Nov 2008, Alex Riesen wrote:

> 2008/11/19 Nicolas Pitre <nico@xxxxxxx>:
> > On Wed, 19 Nov 2008, Johannes Sixt wrote:
> >> Alex Riesen schrieb:
> >> > 2008/11/19 Nicolas Pitre <nico@xxxxxxx>:
> >> >> On Wed, 19 Nov 2008, Johannes Sixt wrote:
> >> >>> The work-around is to write the repacked objects to a file of a different
> >> >>> name, and replace the original after git-pack-objects has terminated.
> >> >>>
> >> >>> Signed-off-by: Johannes Sixt <j6t@xxxxxxxx>
> >> >> Acked-by: Nicolas Pitre <nico@xxxxxxx>
> >> >
> >> > Are you sure? Will it work in a real repository? Were noone does
> >> > rename the previous pack files into packtmp-something?
> >>
> >> Oh, the patch only works around the failure in the test case. In a real
> >> repository there is usually no problem because the destination pack file
> >> does not exist.
> >>
> >> The unusual case is where you do this:
> >>
> >>  $ git rev-list -10 HEAD | git pack-objects foobar
> >>
> >> twice in a row: In this case the second invocation fails on Windows
> >> because the destination pack file already exists *and* is open. But not
> >> even git-repack does this even if it is called twice. OTOH, the test case
> >> *does* exactly this.
> >
> > OK.... Well, despite my earlier assertion, I think the above should be a
> > valid operation.
> >
> > I'm looking at it now.  I'm therefore revoking my earlier ACK as well
> > (better keep that test case alive).
> >
> 
> Any news here?

Yes: my hard disk crashed a couple hours after I mentioned this, so most 
of my time has been spent on recovery since then.  I'll come back to it 
eventually.


Nicolas
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux