| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| From: | ericblake AT comcast DOT net (Eric Blake) |
| To: | Cygwin List <cygwin AT cygwin DOT com> |
| Subject: | bug in rmdir(2) |
| Date: | Wed, 28 Sep 2005 20:31:53 +0000 |
| Message-Id: | <092820052031.26647.433AFDB9000034B50000681722073000330A050E040D0C079D0A@comcast.net> |
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |