This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

bug in rmdir(2)


POSIX requires resolving a filename with a trailing slash as
though . were implicitly present, and requires rmdir(2) to fail
with EINVAL if the final component is '.'.  Therefore, both of
these cases should fail rather than removing the directory:

$ mkdir a b
$ rmdir a/ b/.
$ ls a b      # Oops, rmdir("a/") and rmdir("b/.") incorrectly succeeded
ls: a: No such file or directory
ls: b: No such file or directory

--
Eric Blake

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]