Re: opendir(/dev/fd/n) should fail

2015-01-23 Thread Helmut Karlowski
-- Eric Blake wrote: (23/01/2015 15:04) > On 01/23/2015 03:00 AM, Helmut Karlowski wrote: > > > > -- > > Helmut Karlowski wrote: > > (23/01/2015 10:54) > >> > >> It's not just bash. The same happens

Re: opendir(/dev/fd/n) should fail

2015-01-23 Thread Eric Blake
On 01/23/2015 03:00 AM, Helmut Karlowski wrote: > > -- > Helmut Karlowski wrote: > (23/01/2015 10:54) >> >> It's not just bash. The same happens in my home-grown shell. Starting >> with /dev/fd/3 opendir succeeds giving (only the opendir-entries):

Re: opendir(/dev/fd/n) should fail

2015-01-23 Thread Corinna Vinschen
On Jan 23 11:09, Helmut Karlowski wrote: > > -- > Helmut Karlowski wrote: > (23/01/2015 10:54) > > > > It's not just bash. The same happens in my home-grown shell. Starting > > with /dev/fd/3 opendir succeeds giving (only the opendir-entries): >

Re: opendir(/dev/fd/n) should fail

2015-01-23 Thread Helmut Karlowski
-- Helmut Karlowski wrote: (23/01/2015 10:54) > > It's not just bash. The same happens in my home-grown shell. Starting > with /dev/fd/3 opendir succeeds giving (only the opendir-entries): Maybe it's because: 3 -> /proc/3008/fd/ which recurses

Re: opendir(/dev/fd/n) should fail

2015-01-23 Thread Corinna Vinschen
On Jan 23 10:54, Helmut Karlowski wrote: > > -- > Corinna Vinschen wrote: > (23/01/2015 10:43) > > > > numerous entries ... > > > > This occurs on Linux as well, just with a few less entries in > > fd (42 rather than 560). These descriptors are a

Re: opendir(/dev/fd/n) should fail

2015-01-23 Thread Helmut Karlowski
-- Helmut Karlowski wrote: (23/01/2015 10:54) > > It's not just bash. The same happens in my home-grown shell. Starting > with /dev/fd/3 opendir succeeds giving (only the opendir-entries): Maybe it's because: 3 -> /proc/3008/fd/ which recurses

Re: opendir(/dev/fd/n) should fail

2015-01-23 Thread Helmut Karlowski
-- Corinna Vinschen wrote: (23/01/2015 10:43) > > numerous entries ... > > This occurs on Linux as well, just with a few less entries in > fd (42 rather than 560). These descriptors are apparently > created by bash for some reason I don't know, a

Re: opendir(/dev/fd/n) should fail

2015-01-23 Thread Corinna Vinschen
On Jan 22 23:19, Helmut Karlowski wrote: > Am 22.01.2015, 22:47 Uhr, schrieb Helmut Karlowski: > > >#! /bin/bash > >(set -o globstar 2>/dev/null) && set -o globstar || shopt -s globstar > >extglob > >echo /dev/fd/** > > run this in on mintty, and then in another: > ps: > ... > 8164012

Re: opendir(/dev/fd/n) should fail

2015-01-22 Thread Helmut Karlowski
Am 22.01.2015, 22:47 Uhr, schrieb Helmut Karlowski: #! /bin/bash (set -o globstar 2>/dev/null) && set -o globstar || shopt -s globstar extglob echo /dev/fd/** run this in on mintty, and then in another: ps: ... 8164012 816176 pty01004 00:15:27 /usr/bin/obash 676/h

Re: opendir(/dev/fd/n) should fail

2015-01-22 Thread Helmut Karlowski
Am 22.01.2015, 21:25 Uhr, schrieb Helmut Karlowski: Am 22.01.2015, 13:55 Uhr, schrieb Corinna Vinschen: I applied a fix and uploaded a new developer snapshot to https://cygwin.com/snapshots/ Please give it a try and report back. I can't download the snapshot - tried with several browsers, a

Re: opendir(/dev/fd/n) should fail

2015-01-22 Thread Corinna Vinschen
On Jan 22 21:25, Helmut Karlowski wrote: > Am 22.01.2015, 13:55 Uhr, schrieb Corinna Vinschen: > > >I applied a fix and uploaded a new developer snapshot to > >https://cygwin.com/snapshots/ > > > >Please give it a try and report back. > > I can't download the snapshot - tried with several browser

Re: opendir(/dev/fd/n) should fail

2015-01-22 Thread Andrey Repin
Greetings, Helmut Karlowski! >> I applied a fix and uploaded a new developer snapshot to >> https://cygwin.com/snapshots/ >> >> Please give it a try and report back. > I can't download the snapshot - tried with several browsers, all have near > to 0 transfer-speed. I'll try again this WE. Try

Re: opendir(/dev/fd/n) should fail

2015-01-22 Thread Helmut Karlowski
Am 22.01.2015, 13:55 Uhr, schrieb Corinna Vinschen: I applied a fix and uploaded a new developer snapshot to https://cygwin.com/snapshots/ Please give it a try and report back. I can't download the snapshot - tried with several browsers, all have near to 0 transfer-speed. I'll try again thi

Re: opendir(/dev/fd/n) should fail

2015-01-22 Thread Corinna Vinschen
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: > > > > 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

Re: opendir(/dev/fd/n) should fail

2015-01-22 Thread Corinna Vinschen
On Jan 21 22:55, Helmut Karlowski wrote: > 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 > l

opendir(/dev/fd/n) should fail

2015-01-21 Thread Helmut Karlowski
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