X-Recipient: archive-cygwin AT delorie DOT 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=lJVVFOsxZXrfWjNta7mucsbHKzCElh3gFF1es9L+BTSgCaeUCASzY 7EME6r/bRabtDcSvVr6zaisEzo+TCW+/q1dEel3OCdEh/z+1SGQQmoqPiqzBnfZZ HyD2RizSHSXspXqYSQcjhhIp/h5SmEGbjjGRDERiDPp5pVppXMvoRk= 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=dagf5rBsQI1r4+GvFRSsg6ZRS8g=; b=RYQJKruiFSWYjpTK4+uidrK1D+6F gwA6wNeuvrKSg9TMIy2O7p6wUxUemOXaZ2xgH3BPG4dZRU6svx6xtH9sISS6VsEr rH/fRnOT9XOUHuQmMCMErKoKO+51gyGKPm8o9z8SJ9WsfTLb/rjMiQ9/gUcPX5YL 5AF7MyPLrkDT7RY= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT 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 10:18:48 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: opendir(/dev/fd/n) should fail Message-ID: <20150122091848.GF19127@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="QXO0/MSS4VvK6f+D" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) --QXO0/MSS4VvK6f+D Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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? No, nobody reported it yet, afaics. I'll have a look later today. Thanks, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --QXO0/MSS4VvK6f+D Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJUwMB4AAoJEPU2Bp2uRE+gPwIQAJWWFz/USth1Yq+/XTmIOHHy hZXept4c1K3KZBYqO3tmZE3y1iIG36R/vgwIimTMHnWDlWXnAgRDUWOp8Pt5lFAD cFm3AQG05QZ7OmhPK5N8/xLAQMFeuzQWMMsCxFMMzbHx28lA0aTUEr3t4onc4C1v COtyG5YRcJ/+3mE+rx2/q2krDWQQOd/sETER3eEwLJDO7BdzI9Eak7aXaqLIK31O xAzKSkB6kXfI2vIE3oZJ81CqpFc0n8JyDaUQ5Yw6XyP+h/DoE+YXp6jcptFZ2L4/ 7qJjfPxIELImjxpk/TXehWBt7etonR5dotrV6h8qwU9iKNj2QV2G5FuMZAbCs4iQ XAMqCHVxl+ZKo5X7/NYNCQQRyci7/z5wA8SUwvKIo25TYouuixWmOEMmfuCX8iwG K1f7QSh89c4K/dPLSRLSVU7LItlbB2t7VT9GspfluBVWGjyFPj2j/3E6NRxnMhtC kIgU3img+nUApE0gpKM6Y7L4REB2slJnMB+fcQ+EzvhuvgCGC31A8QylLfXfXwPG gj3Pemiwko/Gl/KTYpZHXOQ8nkZ5wZQDG7pMdqKnwDu3Imm5TFlgpnjDVrxQPUR9 BziV5RwyV8PK1zWr5Pa8THV4MrjRIcy0jXNQ6RTXUu/BnJ756aaifeDDahpVSJXn k224WsbZlPErVltdA1Hm =e8Nh -----END PGP SIGNATURE----- --QXO0/MSS4VvK6f+D--