This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Possible bug in "-e"/exim.sh exit code 1


First I'd like to say thank you to everyone who maintains and extends Cygwin.  It is extremely useful and I really appreciate the 
effort you all put into this project.

I've been having some issues with the exim package when I do updates.  I'm running a Windows XP Pro (latest patches) system.  
Setup reports the exim.sh script returned an exit code of 1.  I looked in the /var/log/setup.log.full (see attached) and saw the 
same basic message.  I modified the exim.sh script by adding the "-x" option to the existing "set -e" command line and ran the 
file from a bash shell to see if I can identify the line causing the issue.  The results are shown in a following section.

The actual line that fails is "[ -L /usr/bin/exim.exe ] && rm -fv usr/bin/exim.exe" and based on my reading of the "set -e" 
option the return code from the test in this line should be ignored as it is part of an "&&".  This would appear to be a bug.

Brian S. Wilson@ncc-1701 /etc/postinstall
$ /bin/bash.exe --norc --noprofile /etc/postinstall/exim.sh
+ nt=
+ case $(uname -s) in
++ uname -s
+ nt=1
+ '[' -n 1 ']'
+ export CYGWIN=ntsec
+ CYGWIN=ntsec
++ sed -ne '/^[^:]*:[^:]*:[0-9]*:[0-9]*:[^:]*,S-1-5-18:.*:/{s/[^:]*:[^:]*:\([0-9]*\):.*$/\1/p;q}' /etc/passwd
+ SYSTEMUID=18
++ sed -ne '/^[^:]*:S-1-5-32-544:.*:/{s/[^:]*:[^:]*:\([0-9]*\):.*$/\1/p;q}' /etc/group
+ ADMINSGID=0
+ setfacl -m u::rw-,g::rw-,o:r-- /etc/defaults/etc/exim.conf
+ '[' -n 18 -a -n 0 ']'
+ chown 18:0 /etc/defaults/etc/exim.conf
+ '[' '!' -e /etc/exim.conf ']'
+ '[' '!' -e /usr/bin/exim-config ']'
+ ln -sf /usr/bin/exim-config /usr/bin/exim
+ '[' -n 1 ']'
+ chmod 777 /var/spool/exim /var/log/exim
+ '[' -n 18 -a -n 0 ']'
+ chown 18:0 /var/spool/exim /var/log/exim
+ '[' -L /usr/bin/exim.exe ']'

Brian S. Wilson@ncc-1701 /etc/postinstall
$ echo $?
1

Brian S. Wilson@ncc-1701 /etc/postinstall
$ ls -l /usr/bin/exim.exe
ls: cannot access /usr/bin/exim.exe: No such file or directory

Brian S. Wilson@ncc-1701 /etc/postinstall
$ ls -l /usr/bin/exim*
lrwxrwxrwx 1 Brian S. Wilson None     20 Jan  1 09:03 /usr/bin/exim -> /usr/bin/exim-config
-rwxr-xr-x 1 Brian S. Wilson root 826894 Feb 17  2010 /usr/bin/exim-4.70-1.exe
-rwxr-xr-x 1 Brian S. Wilson root  24960 Feb 17  2010 /usr/bin/exim-config
-rwxr-xr-x 1 Brian S. Wilson root   4673 Feb 17  2010 /usr/bin/exim_checkaccess
-rwxr-xr-x 1 Brian S. Wilson root  11790 Feb 17  2010 /usr/bin/exim_dbmbuild.exe
-rwxr-xr-x 1 Brian S. Wilson root  14350 Feb 17  2010 /usr/bin/exim_dumpdb.exe
-rwxr-xr-x 1 Brian S. Wilson root  16910 Feb 17  2010 /usr/bin/exim_fixdb.exe
-rwxr-xr-x 1 Brian S. Wilson root  15374 Feb 17  2010 /usr/bin/exim_lock.exe
-rwxr-xr-x 1 Brian S. Wilson root  14862 Feb 17  2010 /usr/bin/exim_tidydb.exe
-rwxr-xr-x 1 Brian S. Wilson root 150799 Feb 17  2010 /usr/bin/eximstats
Sincerely,

Brian S. Wilson
===================================================================
Home: (678) 376-9258       Cell: (678) 232-9357     Wilson@ds.net
===================================================================

Attachment: cygcheck.out
Description: Binary data

Attachment: setup.log.full
Description: Binary data

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]