This is the mail archive of the
mailing list for the Cygwin project.
Re: permissions on /proc/self/fd, process substitution, heredoc
On Jun 12 03:10, Dave Korn wrote:
> On 12 June 2007 02:32, Brian Minton wrote:
> > I know. I basically just wanted to try combining heredocs and process
> > substitution, to see if I could do it. :-)
> I think heredocs inherit perms from /tmp, don't they?
Heredocs are not the problem here but the <() process substitution.
It opens a descriptor to a pipe, which has (faked) permissions 0666
on Cygwin. Pipes on Linux have 0600 permissions. Since pipes on
Cygwin are also created with r/w permissions for the user only, I
changed the mode bits returned from stat/fstat for pipes accordingly
> > On 6/11/07, Dave Korn <dave.korn@artimi.AARGHGODNO!!!!>
> Please try and avoid that. http://cygwin.com/acronyms#PCYMTNQREAIYR and all
> that, thanks.
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html