| www.delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:date:from:reply-to:to:message-id:in-reply-to | |
| :references:subject:mime-version:content-type | |
| :content-transfer-encoding; q=dns; s=default; b=COfgozoAkeLLPXol | |
| jglusLDytZbsn04YVHqlLzk5nYrc9uUFGjOEqJdG8yQkLeF6q/5KNItnSHNo/tgY | |
| fONUE5R+dkVV5SO0Bhwu0N+sNud7Spc9k7nVNt2BXY04q5aIaccuIXvN1Uq4KsD9 | |
| 2CbK/I/OuiqhY2LmnGXuRWMx8aQ= | |
| DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:date:from:reply-to:to:message-id:in-reply-to | |
| :references:subject:mime-version:content-type | |
| :content-transfer-encoding; s=default; bh=8v3fIfkcOk8XdA5m52QD+D | |
| 7xLFc=; b=ETGALe5BVOURiE4D1xuSR1jbNTvlciC/rQUXaIWSM0Gwo2GIGd7gyg | |
| vp/2XGQVzFG0LFMzNNyaCxSMgjo6jzFJyIbeaStoCR/htKhqd6ZM73Vo6qlgUKqi | |
| Rwy7DHxiRM/FDucZth421loYB7jBLg+hcDJJ1V5vaCOnBQb4QR/8A= | |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.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 |
| Authentication-Results: | sourceware.org; auth=none |
| X-Virus-Found: | No |
| X-Spam-SWARE-Status: | No, score=1.3 required=5.0 tests=BAYES_50,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,FREEMAIL_REPLYTO_END_DIGIT,RCVD_IN_DNSWL_NONE,SPF_PASS,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 |
| X-HELO: | nm43-vm9.bullet.mail.ne1.yahoo.com |
| Date: | Fri, 9 Jan 2015 21:24:39 +0000 (UTC) |
| From: | Bob Doskuno <bigbob2k01 AT yahoo DOT com> |
| Reply-To: | Bob Doskuno <bigbob2k01 AT yahoo DOT com> |
| To: | "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com> |
| Message-ID: | <1519656584.65633.1420838679457.JavaMail.yahoo@jws11119.mail.ir2.yahoo.com> |
| In-Reply-To: | <20150108152638.GQ4190@calimero.vinschen.de> |
| References: | <20150108152638 DOT GQ4190 AT calimero DOT vinschen DOT de> |
| Subject: | Re: email.sh exit code 1 postinstall script with no-admin (was: Bug in strftime %z) (was: Possible defect in email.exe re: sent timestamp) |
| MIME-Version: | 1.0 |
| X-IsSubscribed: | yes |
On Thursday, January 8, 2015 10:27 AM, Corinna Vinschen <corinna-cygwin AT cygwin DOT com> wrote:
On Jan 7 22:50, Corinna Vinschen wrote:
> Hi Christian,
>
>
> thanks for the testcase!
>
> On Dec 19 19:44, Christian Franke wrote:
...
> > > > $ ./strftest 1419010000
> > 2014-12-19 18:26:40 +0200 (CET)
> >
> > $ ./strftest 1436200000
> > 2015-07-06 18:26:40 +0053 (CEST)
>
> Surprisingly this is an old problem which exists in this form since 2011.
> Weird that nobody noticed it so far. Or I missed earlier bug reports :}
I uploaded a snapshot containing the fixes in tzload and strftime to
https://cygwin.com/snapshots/ Please give it a try.
======================
I didn't try the snapshot, but I did try email.
Now, running setup (with no-admin) gives a postinstall script error. Sending a couple test emails worked, but there seems to be an invalid assumption, that the user will have admin, in the postinstall script, giving:
Package: _/Unknown package
email.sh exit code 1
/var/log/setup.log.full excerpt:
2015/01/09 11:50:41 running: C:\cygwin64\bin\bash.exe --norc --noprofile "/etc/postinstall/email.sh"
chown: changing ownership of '/etc/defaults/etc/email/email.address.template': Permission denied
chown: changing ownership of '/etc/defaults/etc/email/email.conf': Permission denied
chown: changing ownership of '/etc/defaults/etc/email/email.help': Permission denied
chown: changing ownership of '/etc/defaults/etc/email/email.sig': Permission denied
chown: changing ownership of '/etc/defaults/etc/email/mime.types': Permission denied
2015/01/09 11:50:44 abnormal exit: exit code=1
Excerpt from /etc/postinstall/email.sh where error happens:
SYSTEMUID=$(sed -ne '/^[^:]*:[^:]*:[0-9]*:[0-9]*:[^:]*,S-1-5-18:.*:/{s/[^:]*:[^:]*:\([0-9]*\):.*$/\1/p;q}' /etc/passwd)
ADMINSGID=$(sed -ne '/^[^:]*:S-1-5-32-544:.*:/{s/[^:]*:[^:]*:\([0-9]*\):.*$/\1/p;q}' /etc/group)
setfacl -m u::rw-,g::rw-,o:r-- /etc/defaults/etc/email/*
if [ -n "${SYSTEMUID}" -a -n "${ADMINSGID}" ]
then
chown "${SYSTEMUID}:${ADMINSGID}" /etc/defaults/etc/email/*
else
...
This is using cygwin 1.7.34-003 x86_64.
>>> Q: Why is a top posting reminder annoying?
>> A: Because many irrelevant results appear in searches for "email"
> Q: Are you sure?
A: Somewhat. :)
--
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |