delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/01/21/17:56:16

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:mime-version
:content-transfer-encoding:from:message-id; q=dns; s=default; b=
W7tVSd4xQyXD6/UZXlKVkYqLNH4HuQH0Bp3X+Up8qULL4dDzyySKu4uu0LtJx16v
wGhL4uMroAkO45ov0J9Ml+0d/YWPf1kYGOglrorxXDnXDUQvNsJW3Q9Koj1Jq8/q
SFMH4iIxC0paFLuu3M8oySrtPesg8xg+G0q5gl5INck=
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:mime-version
:content-transfer-encoding:from:message-id; s=default; bh=MRTXzm
6oC0Ql526EHEv22lRppus=; b=nx3FhO6Fh9ZyEhbkywjmBoH3EnZ5tKvHADb7q0
CSb8iePcjqBCyLe55ReZVvpcL2Q4UK3Dvu9uN6oSR+MITLqNyoZDbHGgJAXBnmq6
5rMGKsirPnEvgsLHnrxG/Dw6CBpYL0smVH2yvjlHyHyNGSTt1kEImLUux2t7DCX4
R0PXM=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mout.gmx.net
To: cygwin AT cygwin DOT com
Date: Wed, 21 Jan 2015 22:55:45 -0000
Subject: opendir(/dev/fd/n) should fail
MIME-Version: 1.0
From: "Helmut Karlowski" <helmut DOT karlowski AT gmx DOT de>
Message-ID: <op.xst4m7ihp852t4@nebbiolo.upc.de>
User-Agent: Opera Mail/12.16 (Win32)
X-UI-Out-Filterresults: notjunk:1;

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019