Re: [RFH] plumber's puzzle
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- Apr 22, 2007, 20:43 UTC
- Message-ID
- <alpine.LFD.0.98.0704221341080.9964@woody.linux-foundation.org>
- In-Reply-To
- <7v647ombi6.fsf@assigned-by-dhcp.cox.net>
On Sun, 22 Apr 2007, Junio C Hamano wrote:
> > This shows the single "diff --git" header line without anything, > to show that the path is not stat-clean, but the contents are > unchanged, which is what is expected.
Actually, I think the "good" case is the broken one.
Do an "strace -f" on the two cases, and you'll see an EBADF in the case that you think is good: the missing output *is* there, it's just that you closed the file descriptor so you don't see it.
So if the output you want is with the close(1) (ie with the output discarded), then you have some other bug there.
Linus