Re: [PATCH] Do _not_ call unlink on a directory
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- Jul 16, 2007, 22:03 UTC
- Message-ID
- <alpine.LFD.0.999.0707161502160.20061@woody.linux-foundation.org>
- In-Reply-To
- <469BEA21.5080308@slamb.org>
On Mon, 16 Jul 2007, Scott Lamb wrote:
Show 7 quoted lines
> Linus Torvalds wrote: > > > > In fact, with the Solaris behaviour for unlink(), you *cannot* have a > > non-broken "remove()". > > I'd hoped to see that they made a new syscall to properly implement the > new behavior.
Ahh, yes, with a new system call you could do it.
> But they didn't. It reminds me of glibc's pselect().
Yeah, that was a bit pointless, although it does make it easier to port binaries and then have them to work in practice most of the time.
Linus