nftw does not return ENOENT for non-existing path

2019-06-20 Thread Jonathan Rajotte-Julien
Hi, We are currently porting Babeltrace 2 to cygwin and experiencing a subtle difference regarding the behaviour of nftw(). On a Gnu/Linux system (Ubuntu 18.04), using the example from the man page of nftw(see nftw.c), passing a non-existent directory will result in a failure of the nftw() call

Re: Are there any changes to the access control to /proc//fd/1 in cygwin 3?

2019-06-20 Thread Till Riedel [TM]
Hi Brian, you actually hinted me at sth. : powershell.exe Start-Process bash  \"-c\",\"\'echo hello world  \>`readlink /proc/$$/fd/1`\;sleep 10\'\" works as well. I verified this: >echo hello >/proc/3235/fd/0 -bash: echo: write error: Bad file descriptor >echo hello >`readlink /proc/3235/fd

Re: Re: Are there any changes to the access control to /proc//fd/1 in cygwin 3?

2019-06-20 Thread Till Riedel [TM]
Hi Brian, thanks for the reply. But proc/$$/fd/1 references the callers  stdout and not the callees as /dev/stdout or /proc/self/fd/2 if called from eg. from bash, because it is expanded before the call. What I was able to do is to inject messages into the callers stdout and read from the c