> I'll probably just have to add a test for "." and ".." by hand to rmdir().
> Sad, because it _could_ be potentially useful, it's just not allowed in
> POSIX.
You could follow the precident set by the FSF. Allow the new enhanced
behavior by default, but provide a switch, for example:
$ echo "1" > /proc/POSIXLY_CORRECT
To force the POSIX-mandated brain-damage.
-- John Kodis.