Package: manpages-dev
Version: 2.77-1

Current rmdir(2) manpage only lists

  ENOTEMPTY
      pathname  contains entries other than . and .. ; or, pathname has ..  as 
its final component.

However, according to the SuSv2 spec [1], rmdir can return either
ENOTEMPTY or EEXISTS in this case.

In fact, the current ntfs-3g version does use EEXISTS, allegedly
because "more software handle the relevant error scenario better that
way". (see [2] for the place where this originally came up)

Thank you,

Martin

[1] http://www.opengroup.org/onlinepubs/007908775/xsh/rmdir.html
[2] https://launchpad.net/bugs/186569

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)

My 5 bugs today: #185273 #190947 #193494 #192786 #172792
Do 5 a day - every day! https://wiki.ubuntu.com/5-A-Day

Attachment: signature.asc
Description: Digital signature

Reply via email to