Hello community, here is the log from the commit of package fetchmail checked in at Thu Oct 26 20:41:03 CEST 2006. -------- --- fetchmail/fetchmail.changes 2006-10-23 17:16:35.000000000 +0200 +++ /mounts/work_src_done/STABLE/fetchmail/fetchmail.changes 2006-10-25 19:37:20.000000000 +0200 @@ -1,0 +2,5 @@ +Wed Oct 25 19:36:22 CEST 2006 - sbrabec@suse.cz + +- Fixed problems caused by calling daemon as non-root (#207305). + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ fetchmail.spec ++++++ --- /var/tmp/diff_new_pack.yUToOZ/_old 2006-10-26 20:40:59.000000000 +0200 +++ /var/tmp/diff_new_pack.yUToOZ/_new 2006-10-26 20:40:59.000000000 +0200 @@ -16,14 +16,14 @@ Group: Productivity/Networking/Email/Utilities Autoreqprov: on Version: 6.3.5 -Release: 1 +Release: 4 Source: %{name}-%{version}.tar.bz2 Source1: %{name}.init Source2: %{name}.logrotate Source3: sysconfig.%{name} Patch: fm635-daemon-logfile.patch %if %suse_version > 800 -PreReq: %insserv_prereq %fillup_prereq +PreReq: %insserv_prereq %fillup_prereq coreutils %endif URL: http://fetchmail.berlios.de/ Icon: fetchmail.xpm @@ -121,16 +121,29 @@ touch $RPM_BUILD_ROOT/etc/fetchmailrc mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates cp sysconfig.%{name} $RPM_BUILD_ROOT/var/adm/fillup-templates +mkdir -p $RPM_BUILD_ROOT/var/log +touch $RPM_BUILD_ROOT/var/log/fetchmail +mkdir -p $RPM_BUILD_ROOT/var/lib/fetchmail %pre usr/sbin/useradd -r -o -g daemon -s /bin/false \ - -c "mail retrieval daemon" -d /usr/bin fetchmail 2>/dev/null || : + -c "mail retrieval daemon" -d /var/lib/fetchmail fetchmail 2>/dev/null || : %post %{fillup_and_insserv} +# Ensure that all files are readable by fetchmail with non-root UID. +touch var/log/fetchmail +chown fetchmail var/log/fetchmail +if test -f etc/fetchmailrc ; then + chown fetchmail etc/fetchmailrc +fi +chmod 0600 var/log/fetchmail %postun %{insserv_cleanup} +if [ $1 == 0 ]; then + rm -rf var/lib/fetchmail +fi %clean rm -rf $RPM_BUILD_ROOT @@ -143,9 +156,11 @@ /usr/share/locale/*/LC_MESSAGES/fetchmail.mo /etc/logrotate.d/fetchmail /etc/init.d/fetchmail -%ghost %config(noreplace) /etc/fetchmailrc +%ghost %config(noreplace) %attr (0600, fetchmail, root) /etc/fetchmailrc /sbin/rcfetchmail /var/adm/fillup-templates/sysconfig.%{name} +%ghost %attr (0600, fetchmail, root) /var/log/fetchmail +%dir %attr (0700, fetchmail, root) /var/lib/fetchmail %files -n fetchmailconf %defattr(-, root, root) @@ -154,6 +169,8 @@ %doc %{_mandir}/man1/fetchmailconf.1.gz %changelog -n fetchmail +* Wed Oct 25 2006 - sbrabec@suse.cz +- Fixed problems caused by calling daemon as non-root (#207305). * Mon Oct 23 2006 - sbrabec@suse.cz - Updated to version 6.3.5: * Bug fixes. ++++++ fetchmail.init ++++++ --- fetchmail/fetchmail.init 2006-04-03 15:36:28.000000000 +0200 +++ /mounts/work_src_done/STABLE/fetchmail/fetchmail.init 2006-10-25 19:25:29.000000000 +0200 @@ -48,14 +48,20 @@ . $FETCHMAIL_CONFIG FETCHMAIL_FETCHALL_OPTION= -if [ $FETCHMAIL_FETCHALL = "yes" ] ; then +if [ "$FETCHMAIL_FETCHALL" = "yes" ] ; then FETCHMAIL_FETCHALL_OPTION=" -a" fi FETCHMAIL_SILENT_OPTION= -if [ $FETCHMAIL_SILENT = "yes" ] ; then +if [ "$FETCHMAIL_SILENT" = "yes" ] ; then FETCHMAIL_SILENT_OPTION=" -s" fi +if [ "$FETCHMAIL_USER" = "fetchmail" ] ; then + if [ -z "$FETCHMAILHOME" ] ; then + export FETCHMAILHOME=/var/lib/fetchmail + fi +fi + # Shell functions sourced from /etc/rc.status: # rc_check check and set local and overall rc status # rc_status check and set local and overall rc status ++++++ fetchmail.logrotate ++++++ --- fetchmail/fetchmail.logrotate 2002-10-24 18:47:25.000000000 +0200 +++ /mounts/work_src_done/STABLE/fetchmail/fetchmail.logrotate 2006-10-25 19:08:16.000000000 +0200 @@ -7,5 +7,6 @@ notifempty missingok copytruncate + create 0600 fetchmail root } ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@suse.de