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]

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
in CVS.

> > On 6/11/07, Dave Korn <dave.korn@artimi.AARGHGODNO!!!!>
> 
>   Please try and avoid that.  http://cygwin.com/acronyms#PCYMTNQREAIYR and all
> that, thanks.

I agree.


Corinna


-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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