[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: coreutils 5.92, rm <dir> on Solaris, bad error message
From: |
Paul Eggert |
Subject: |
Re: coreutils 5.92, rm <dir> on Solaris, bad error message |
Date: |
Wed, 02 Nov 2005 00:43:18 -0800 |
User-agent: |
Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) |
Jim Meyering <address@hidden> 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".