Re: [PATCH] Do _not_ call unlink on a directory
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- Jul 17, 2007, 19:07 UTC
- Message-ID
- <alpine.LFD.0.999.0707171207090.27353@woody.linux-foundation.org>
- In-Reply-To
- <7vtzs3a0xg.fsf@assigned-by-dhcp.cox.net>
On Tue, 17 Jul 2007, Junio C Hamano wrote:
> > This is wrong. If the filesystem has a symlink and we would > want a directory there, we should unlink(). So at least the > stat there needs to be lstat().
Good catch. Ack.
Linus