delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/06/22/10:36:37

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Mon, 22 Jun 2009 10:36:16 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Cygwin 1.7: Possible file permission errors in 'base-files'
Message-ID: <20090622143616.GD13645@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <4A3D1570 DOT 5020506 AT aim DOT com> <20090622094310 DOT GN5039 AT calimero DOT vinschen DOT de>
MIME-Version: 1.0
In-Reply-To: <20090622094310.GN5039@calimero.vinschen.de>
User-Agent: Mutt/1.5.19 (2009-01-05)
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 Mon, Jun 22, 2009 at 11:43:10AM +0200, Corinna Vinschen wrote:
>On Jun 20 12:59, Mark Harig wrote:
>>
>> The two files 'base-files-mketc.sh' and 'base-files-profiles.sh' included
>> in the 'base-files' package have their permissions set to 644 while all
>> other scripts in /etc/postinstall/ have their permissions set to 755.
>>
>> Is this a side-effect of 'base-files-profiles.sh' not completing without
>> errors, or is this set in the packaging?
>>
>> (Technically, the files with the permission problems are
>> /etc/postinstall/base-files-mketc.sh.done and
>> /etc/postinstall/base-files-profiles.sh.done.)
>
>Technically it's a packaging bug.  The scripts should have execute
>permissions like all the shell scripts in /etc/postinstall and
>/etc/preremove.
>
>John, I fixed that on Sourceware and created a 3.8-4 package with
>execute permissions for postinstall and preremove scripts.
>
>It shouldn't affect postinstall, though.  When calling `bash -c script',
>then bash runs these scripts as long as the user has read permissions
>on Cygwin.  Which is actually kind of a bug in Cygwin.  I've put that
>on my TODO list.

Sounds like we should drop the "-c".

cgf

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

- Raw text -


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