X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:from:to:cc:subject:content-type
	:content-transfer-encoding:in-reply-to:references:date
	:message-id:mime-version; q=dns; s=default; b=AxR+8QiI4VvJTdnqHi
	d7NNsdekqqFs7X1EEqzTwbbrqPTmwTXZTp+f99VgazcMjRM+lCvTvqRjCVduAB5p
	mBYNTmp9StE5s/26v0+GaW/ClHl8R/UD1ieRcQgmVA5M+VYN6nRNNAdhFHlIinnC
	FDQ/hhCh+kkkY6r6Z4Sp/7A9k=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:from:to:cc:subject:content-type
	:content-transfer-encoding:in-reply-to:references:date
	:message-id:mime-version; s=default; bh=OdVmNf15vI3BO63/TtPM9ZPq
	RRE=; b=jQ6ykfm0emipdQNP2sx31JXOFkplYAbNpyykXygaz9LLYh+YXsXfTZyN
	bZ9TeUTp+5SBduEN/mHjGyxWx2anFjJbNg4XgD/BoNMekV67+vxr/TFtFOhQiT+N
	mY9h2/cljOqp+AVZoMjd5BB8t5lIux+Xi/d93b/v8aWCiXENQ7s=
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
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-Spam-User: qpsmtpd, 2 recipients
X-HELO: mailout.ish.de
X-Spam-Score: -0.01
From: Helmut Karlowski <helmut.karlowski@ish.de>
To: cygwin@cygwin.com
Cc: Corinna Vinschen <corinna-cygwin@cygwin.com>
Subject: Re: opendir(/dev/fd/n) should fail
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
In-Reply-To: <20150123105430.210869D0.helmut.karlowski@ish.de>
References: <20150123094322.GA5612@calimero.vinschen.de> <20150123105430.210869D0.helmut.karlowski@ish.de>
Date: Fri, 23 Jan 2015 11:00:34 +0100
Message-Id: <20150123110034.B8F3A9F0.helmut.karlowski@ish.de>
MIME-Version: 1.0
X-IsSubscribed: yes


--------------------------------------------------
Helmut Karlowski <helmut.karlowski@ish.de> wrote:
(23/01/2015 10:54)
> 
> It's not just bash. The same happens in my home-grown shell. Starting 
> with /dev/fd/3 opendir succeeds giving (only the opendir-entries):

Maybe it's because:

3 -> /proc/3008/fd/

which recurses into /dev/fd again?

-Helmut



--
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

