[9869] in Athena Bugs
decmips 7.4G: rmdir(), rmdir(2)
daemon@ATHENA.MIT.EDU (Calvin Clark)
Tue Sep 8 19:33:51 1992
Date: Tue, 8 Sep 92 19:33:43 -0400
From: Calvin Clark <ckclark@mit.edu>
To: bugs@Athena.MIT.EDU
Reply-To: ckclark@mit.edu
System name: w20-575-61
Type and version: KN02ca 7.4G
Display type: PMAG-DV
What were you trying to do?
% mkdir /tmp/foo
% rmdir /tmp/foo/
rmdir: /tmp/foo/: Is a directory
What's wrong:
This is dumb.
What should have happened:
Clearly, either:
1. The call should have succeeded.
or:
2. EISDIR should listed in the man
page as a valid diagnostic error
code, explaining why rmdir()
should fail if its argument
is a directory :-)
[ Note: on BSD systems (VAX, RT, SunOS), rmdir("/tmp/foo/") fails with
EINVAL, which is described on the man page as follows:
[EINVAL] The pathname contains a character with the
high-order bit set.
This also clearly an incorrect diagnostic.
On the RS/6000, the call succeeds, which is the correct behavior. ]
Please describe any relevant documentation references:
rmdir(2)