This is the mail archive of the
mailing list for the Cygwin project.
Re: wget postinstall and setup
- From: Reini Urban <rurban at x-ray dot at>
- To: cygwin-apps at cygwin dot com
- Date: Thu, 27 Jan 2005 19:53:54 +0100
- Subject: Re: wget postinstall and setup
- References: <41F93365.ED6FF9A@phumblet.no-ip.org>
Pierre A. Humblet schrieb:
The wget postinstall is doing a cp.
As discussed earlier, a cp does not preserve the
ACL and any cp done in a postinstall script must be
accompanied by a "touch" to create the new file
before copying unto it (see e.g. as in man.sh), or a "chmod"
to set reasonable permissions after the copying (e.g.
as in openldap.sh).
If that's not done, the user may end up having unreadable
files. Sorry I didn't notice that earlier.
/bin/install -m MODE also from coreutils is IMHO easier.
It's a pain to have to impose this to all package maintainers.
It would be much better to set CYGWIN=nontsec from setup.exe
while running the postinstall scripts.
The only scripts that need to chown or chmod files are those
related to services (cron, exim,...). Their maintainers are well
aware of that. They should set CYGWIN=ntsec.