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:date:from:to:subject:message-id:reply-to
	:references:mime-version:content-type:in-reply-to; q=dns; s=
	default; b=DiiHRrkdogJbK7F3Ljt0PZWi1U5ZUeS0WVYqouPyMidhHUdZ9EIuO
	ShYmlUJEJm1+e4Tw3b3eZP9LZQq+569jE6uyOydPGGGAh6+ws8G8NEOqbZQpBnr0
	tAKnNRE5vMYk9D47RPk/8imyA8msy/8f7ngpu78ph69tE2+Vrp0HMg=
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:date:from:to:subject:message-id:reply-to
	:references:mime-version:content-type:in-reply-to; s=default;
	 bh=/zk6y05NPsaWX94veb/o+qKAPmw=; b=W5glwOgdBJOMbiIHH1qoK56SnGnc
	Jr87ql+58ISP4PbkzOzJ7vhCoYU2KcUJAXn0tCRvbXmfsex8G5l6F+QxSPABMQSB
	7538SXYwhEdzfzOP7uOuj3ZUhoSAQRDrsW9VFRcpRHBj8Js+8KGZdK6T7UUyEKO/
	2jzp4Uwj89B671A=
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-Virus-Found: No
X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2
X-HELO: calimero.vinschen.de
Date: Thu, 22 Jan 2015 14:55:30 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: opendir(/dev/fd/n) should fail
Message-ID: <20150122135530.GG19127@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <op.xst4m7ihp852t4@nebbiolo.upc.de> <20150122091848.GF19127@calimero.vinschen.de>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;	protocol="application/pgp-signature"; boundary="w/VI3ydZO+RcZ3Ux"
Content-Disposition: inline
In-Reply-To: <20150122091848.GF19127@calimero.vinschen.de>
User-Agent: Mutt/1.5.23 (2014-03-12)

--w/VI3ydZO+RcZ3Ux
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Jan 22 10:18, Corinna Vinschen wrote:
> On Jan 21 22:55, Helmut Karlowski wrote:
> > I discovered a strange behaviour when accessing /dev/fd:
> >=20
> >         ls -l /dev/fd/0
> >         ls -l /dev/fd/0/1
> >         ls -l /dev/fd/0/1/2/3/4/5
> >         ls -l /dev/fd/0/1/2/3/
> >         ls -l /dev/fd/0/1/2
> >         ls -l /dev/fd/0/1/2/3
> >         ls -l /dev/fd/0/1/1/1/1
> >=20
> > gives:
> >=20
> > lrwxrwxrwx 1 hk Benutzer 0 Jan 21 23:52 /dev/fd/0 -> /dev/pty0
> > lrwxrwxrwx 1 hk Benutzer 0 Jan 21 23:52 /dev/fd/0/1 -> /dev/pty0
> > ls: cannot access /dev/fd/0/1/2/3/4/5: Not a directory
> > ls: cannot access /dev/fd/0/1/2/3/: Not a directory
> > lrwxrwxrwx 1 hk Benutzer 0 Jan 21 23:52 /dev/fd/0/1/2 -> /dev/pty0
> > ls: cannot access /dev/fd/0/1/2/3: Not a directory
> > lrwxrwxrwx 1 hk Benutzer 0 Jan 21 23:52 /dev/fd/0/1/1/1/1 -> /dev/pty0
> >=20
> > I'd expect ls /dev/fd/n/p to fail for any combination of n and p.
> >=20
> > I'm using 1.7.32. Has this been fixed meanwhile?
>=20
> No, nobody reported it yet, afaics.  I'll have a look later today.

I applied a fix and uploaded a new developer snapshot to
https://cygwin.com/snapshots/

Please give it a try and report back.


Thanks,
Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--w/VI3ydZO+RcZ3Ux
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBAgAGBQJUwQFSAAoJEPU2Bp2uRE+gXfIP/iRavN+oGQNTnW6m4HfHB3t1
WhXvfHQr8gsuu0Jqxyo63QuMUmIBgF/xh2WkyrZ1fpD/S6PBJZYfu2A8Z/R9aE0A
hzmcZVhWoEpDsAOR/DpojfQ1i1xJ9x/ZZB7smqKP38laLm0K4qcZJ/2BahOj5sIq
BvmXxRLZhWHfP7g5UirswS/G5UE+PWeOmXSDFnQpuQv5YLEyFxhz0d4Rk2W7O6IX
GgD65wJuXmtfwbPSgu+oT0K6VloPJcNakPGApMX0oeAjPErbMvBOveyZxQxdBDc5
O5qJWoped+QFYyMtIXtHX8oSKe/+AG4zaeEn71/Swpcdk3U/D0UO/TEAsFLP05kt
2spUrNmzsSuQeTWZBYCJhLWK/hgp5ksns/LfDmeJez8JtG0bX9EcEZXR0Tvh1WUO
SliSLzdHY/JTpUlfab0t+uirO+rEBxzccPbq+DhQa/aH8NnYCx1xDmVjPbZG6Qws
J2o2Mxqv8/DUdbGtieKZ47I4aFX1QB2VkFDKf01v/n80BRKjWNWrLmUncGb/RKvd
OFsU/RhY7yjU7IzqXtZtByhifXiUHOtD2NPbhcHNuL3fGYRLIB4ebhvof3IZ8o8n
IiZhd0TkvMXC0Z4yF/T/CmjQysTkSRrD1KosyzZncJdnIFFUqs4zq01aghBPAui/
TEb5hpZ53TS8vNLhAc4j
=vdyP
-----END PGP SIGNATURE-----

--w/VI3ydZO+RcZ3Ux--
