| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
| List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT sources DOT redhat DOT com |
| Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
| X-Originating-IP: | [65.25.189.2] |
| From: | "John William" <jw2357 AT hotmail DOT com> |
| To: | cygwin AT cygwin DOT com |
| Subject: | 1.3.2 rmdir fails if CWD is in the directory to be deleted? |
| Date: | Sat, 08 Sep 2001 04:45:24 |
| Mime-Version: | 1.0 |
| Message-ID: | <F146hlbgwCpsCXsCLMy0000ad06@hotmail.com> |
| X-OriginalArrivalTime: | 08 Sep 2001 04:45:25.0101 (UTC) FILETIME=[133E49D0:01C13821] |
I just installed Cygwin and am having the following problem with rmdir() --
it fails if the CWD is set to the directory to be deleted.
main()
{
mkdir("test");
rmdir("test"); <-- succeeds
mkdir("test");
chdir("test");
rmdir("test"); <-- fails
}
This is different than standard UN*X. It appears to me that POSIX only
requires that the directory be empty, it doesn't say that the CWD can't be
set to the directory to be deleted.
Is this a known issue? It is causing problems with some programs I'm trying
to compile (they work fine under RH Linux, DJGPP and FreeBSD). Please e-mail
any reponses, as I am not subscribed to the mailing list. Thanks!
- John
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |