X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=3.9 required=5.0	tests=AWL,BAYES_50,RCVD_IN_NJABL_SPAM,RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: rmdir limitation to 3192 directories
X-KeepSent: 8DF65A85:424F55D9-C1257A64:004113A8; type=4; name=$KeepSent
Message-ID: <OF8DF65A85.424F55D9-ONC1257A64.004113A8-C1257A64.0041CC0C@orc.fr>
From: genonceaux@orc.fr
Date: Fri, 24 Aug 2012 13:58:41 +0200
Content-Type: text/plain; charset="ISO-8859-1"
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q7OBwwqp026400

Windows Server 2k3 R2 SP2 32 bits
Cygwin 1.7.16-1

$ /bin/find.exe --version
find (GNU findutils) 4.5.9
Packaged by Cygwin (4.5.9-2)

$ /bin/rmdir.exe --version
rmdir (GNU coreutils) 8.15
Paquet réalisé par Cygwin (8.15-1)

I try to delete empty directories with this command : "/bin/find /path 
-depth -type d -empty -execdir rmdir \{\} \;"

If the number of empty directories to remove greater than 3192, I have the 
following message for the directories to remove remaining :
"Bad file descriptor"

Philippe

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


