This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

opendir(/dev/fd/n) should fail


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]