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:content-type:to:date:subject:from:message-id :resent-to:mime-version:content-transfer-encoding:resent-from :resent-date:resent-message-id; q=dns; s=default; b=yfCGeN+PEBDY nlMTCQFLjR/tBWE1XlL8AtesfMB3r+BYgmZDXlgFcdaXkZYSqTpbSGWGOkZcBOp3 tP54hHyHuHlhigdR5aTTw/j570S2awge9z8ehmMebTk4flVveMow9auIKDyYj9aL BpMlE8C/xNeo4NHUyDo6BT8iGA+pcfU= 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:content-type:to:date:subject:from:message-id :resent-to:mime-version:content-transfer-encoding:resent-from :resent-date:resent-message-id; s=default; bh=05UZYLc6ZtOsHWi1mi JdhfkffJc=; b=IOV6B2kVn94G+GR0rsw/NOKHbM7Dol4sOcN3IV6cnC7FetRxpu i4kOztk4qPOFgYSHBTQgwYfMrLUB4UTdh4Abjy6qOEQqZDo8EY7nj9XxJDHg1iI+ Ztiq292cJSxVBcXUapG8nH6q5NdQa9/EutqyN9BzW+W7eSn+QKc8xTisQ= 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=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mailout.ish.de X-Spam-Score: -0.01 Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes To: cygwin AT cygwin DOT com Date: Wed, 21 Jan 2015 22:55:45 -0000 Subject: opendir(/dev/fd/n) should fail From: "Helmut Karlowski" Message-ID: User-Agent: Opera Mail/12.16 (Win32) Resent-To: "The Cygwin Mailing List" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Resent-From: "Helmut Karlowski" Resent-Date: Wed, 21 Jan 2015 23:05:03 -0000 Resent-Message-ID: X-IsSubscribed: yes I discovered a strange behaviour when accessing /dev/fd: 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 gives: 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 I'd expect ls /dev/fd/n/p to fail for any combination of n and p. I'm using 1.7.32. Has this been fixed meanwhile? -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