delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/06/22/11:01:51

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Mon, 22 Jun 2009 17:01:05 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com, cygwin-apps AT cygwin DOT com
Subject: Re: HEADSUP maintainers: Packages install scripts without execute ?permissions
Message-ID: <20090622150105.GW5039@calimero.vinschen.de>
Reply-To: cygwin-apps AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com, cygwin-apps AT cygwin DOT com
References: <4A3D1570 DOT 5020506 AT aim DOT com> <20090622094310 DOT GN5039 AT calimero DOT vinschen DOT de> <20090622131144 DOT GR5039 AT calimero DOT vinschen DOT de> <4A3F8955 DOT 3080407 AT gmail DOT com> <20090622134020 DOT GS5039 AT calimero DOT vinschen DOT de> <loom DOT 20090622T135114-330 AT post DOT gmane DOT org> <20090622140922 DOT GU5039 AT calimero DOT vinschen DOT de>
MIME-Version: 1.0
In-Reply-To: <20090622140922.GU5039@calimero.vinschen.de>
User-Agent: Mutt/1.5.19 (2009-02-20)
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 22 16:09, Corinna Vinschen wrote:
> On Jun 22 13:58, Eric Blake wrote:
> > For that matter, are there any postinstall scripts currently relying on a 
> > different interpreter?  If not, then I'm in favor of the idea of changing 
> > setup.exe to be immune to the execute bit on postinstall scripts, at the 
> > expense of making postinstall scripts locked into bash (at least, as the 
> > initial interpreter).
> 
> There can be only *.bat and *.sh files in /etc/postinstall and
> /etc/preremove.  *.bat files are started via `cmd /c file' and *.sh
> files are started via `bash --norc --noprofile -c file'.  So we sort of
> require a script to be a sh/bash script anyway right now.  Admittedly, I
> did not actually *look* into all postinstall/preremove scripts in the
> distro.

I just checked the entire 1.7 distro and here's the result:

We have not a single package left which uses a .bat file in postinstall
or in preremove.  That's great, IMHO.

And, AFAICS, all of the *.sh fiels are actually some variation of
sh/ash/bash script.

So I assume it's safe to remove the -c from setup's script starter
method.


Corinna

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

--
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