Paul Eggert wrote: > Jim Meyering <[EMAIL PROTECTED]> writes: > > + /* Upon a failed attempt to unlink a directory, Solaris 9 sets > > + errno to EPERM. > > One suggestion for the comment. The behavior in question (namely, > unlink (dir) fails with errno==EPERM) is not just Solaris 9: it's > required by POSIX. Linux is the odd man out here (though I think that > the Linux behavior is better, actually). See, for example, > <http://www.linuxbase.org/spec/refspecs/LSB_1.2.0/gLSB/baselib-unlink-3.html>. > > So perhaps the comment should read "most non-Linux systems set errno > to the POSIX-required value EPERM".
If you don't mind additional word-smithing I would say this differently still. I don't generally like negative logic such as non-this or not-that and would prefer positive set groups. Traditional and POSIX systems return EPERM but Linux intentionally returns EISDIR to improve upon the situation. Bob _______________________________________________ Bug-coreutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-coreutils
