Re: Bug in unlink error return

2001-05-17 Thread Andries . Brouwer
> IMO that's the case of POSIX being misapplied. Rationale: > * historically, ... Yes, I know all about that. Nevertheless the facts are here: EPERM The system does not allow unlinking of directories, or unlinking of directories requires privileges that t

Re: Bug in unlink error return

2001-05-17 Thread Alexander Viro
On Thu, 17 May 2001 [EMAIL PROTECTED] wrote: > Someone complained a moment ago about the error return in unlink. > And indeed, it used to be correct but since 2.1.132 we return a > buggy (or at least non-POSIX) error for unlink(directory). > [The EISDIR is correct for rename(), and the cleanu

Re: Bug in unlink error return

2001-05-17 Thread Alan Cox
>EISDIR pathname refers to a directory. (This is the non- > POSIX value returned by Linux since 2.1.132.) it isnnt that simple -ac does the right thing now I believe > Probably this should be fixed again, both in 2.2 and 2.4. > 2.0 is still correct (I checked only ext2).