delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/06/12/04:31:06

X-Spam-Check-By: sourceware.org
Date: Tue, 12 Jun 2007 10:30:42 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: permissions on /proc/self/fd, process substitution, heredoc
Message-ID: <20070612083042.GH4179@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <81aa6b5a0706111753h66ad616fn5492e9c03d9612d9 AT mail DOT gmail DOT com> <008201c7ac90$87d65ff0$2e08a8c0 AT CAM DOT ARTIMI DOT COM> <81aa6b5a0706111831m3ad51f7fg70030a8e00dae2b2 AT mail DOT gmail DOT com> <008c01c7ac96$cbece3c0$2e08a8c0 AT CAM DOT ARTIMI DOT COM>
Mime-Version: 1.0
In-Reply-To: <008c01c7ac96$cbece3c0$2e08a8c0@CAM.ARTIMI.COM>
User-Agent: Mutt/1.4.2.2i
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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 DOT korn AT artimi DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019