Bug#580938: cron sends mail to null after upgrade to v3.0pl1-110

2010-05-10 Thread Christian Kastner
tag 580938 +patch
thanks

On 05/10/2010 05:08 AM, Ron Johnson wrote:
 On 05/09/2010 08:22 PM, Christian Kastner wrote:
 tag 580938 confirmed pending
 severity important
 thanks

 On 05/10/2010 02:14 AM, Ron Johnson wrote:
 My crontab entries all have this in them, so that emails to *not* get
 sent:
 MAILTO=

 However, after the most recent upgrade, root has begun sending emails
 each time that cron runs.

 Indeed. The new mail processing code contains an error, it doesn't bail
 out when it should on an empty MAILTO.

 I committed a fix, it will be in the next upload.

 
 Thanks.  So I live with this minor aggravation for 10 days while it sits
 in the NEW queue?

I don't know yet when the next upload is going to be. I think it will
rather be sooner than later because I consider this important.

If it can't wait at all, you can rebuild with the attached patch against
-110 (it's a one-line fix).


Christian
diff -urN cron-3.0pl1/do_command.c cron-3.0pl1-fixed//do_command.c
--- cron-3.0pl1/do_command.c	2010-05-02 14:08:07.0 +0200
+++ cron-3.0pl1-fixed//do_command.c	2010-05-10 12:17:36.0 +0200
@@ -517,7 +517,7 @@
 	if (mailto == NULL)
 		mailto = usernm;
 	else if (!*mailto)
-		mailto = NULL;
+		goto mail_finished;
 
 	/* Don't send mail if MAILCMD is not available */
 	if ((statret = stat(MAILCMD, mcsb)) != 0) {


signature.asc
Description: OpenPGP digital signature


Bug#580938: cron sends mail to null after upgrade to v3.0pl1-110

2010-05-10 Thread Javier Fernández-Sanguino Peña
On Sun, May 09, 2010 at 10:08:10PM -0500, Ron Johnson wrote:
 Thanks.  So I live with this minor aggravation for 10 days while it
 sits in the NEW queue?

NEW is for new packages, the new cron package will be available in sid as
soon as we make an upgrade.

Regards

Javier



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#580938: cron sends mail to null after upgrade to v3.0pl1-110

2010-05-09 Thread Ron Johnson
Package: cron
Version: 3.0pl1-110
Severity: normal
Tags: sid

My crontab entries all have this in them, so that emails to *not* get
sent:
MAILTO=

However, after the most recent upgrade, root has begun sending emails 
each time that cron runs.   

Attached is an example email.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages cron depends on:
ii  adduser   3.112  add and remove users and groups
ii  debianutils   3.2.3  Miscellaneous utilities specific t
ii  libc6 2.10.2-7   Embedded GNU C Library: Shared lib
ii  libpam-runtime1.1.1-3Runtime support for the PAM librar
ii  libpam0g  1.1.1-3Pluggable Authentication Modules l
ii  libselinux1   2.0.94-1   SELinux runtime shared libraries
ii  lsb-base  3.2-23.1   Linux Standard Base 3.2 init scrip

Versions of packages cron recommends:
ii  lockfile-progs0.1.13 Programs for locking and unlocking
ii  postfix [mail-transport-agent 2.7.0-1High-performance mail transport ag

Versions of packages cron suggests:
pn  anacron   none (no description available)
pn  checksecurity none (no description available)
ii  logrotate 3.7.8-6Log rotation utility

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#580938: cron sends mail to null after upgrade to v3.0pl1-110

2010-05-09 Thread Ron Johnson

On 05/09/2010 07:14 PM, Ron Johnson wrote:

Package: cron
Version: 3.0pl1-110
Severity: normal
Tags: sid

My crontab entries all have this in them, so that emails to *not* get
sent:
MAILTO=

However, after the most recent upgrade, root has begun sending emails
each time that cron runs.

Attached is an example email.



Sorry.  I thought that reportbug would allow me to add attachments. 
 So, here's the email:

http://members.cox.net/ron.l.johnson/to_null_example.eml

--
Dissent is patriotic, remember?



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#580938: cron sends mail to null after upgrade to v3.0pl1-110

2010-05-09 Thread Christian Kastner
tag 580938 confirmed pending
severity important
thanks  

On 05/10/2010 02:14 AM, Ron Johnson wrote:
 My crontab entries all have this in them, so that emails to *not* get
 sent:
 MAILTO=
 
 However, after the most recent upgrade, root has begun sending emails 
 each time that cron runs.   

Indeed. The new mail processing code contains an error, it doesn't bail
out when it should on an empty MAILTO.

I committed a fix, it will be in the next upload.


Christian





signature.asc
Description: OpenPGP digital signature


Bug#580938: cron sends mail to null after upgrade to v3.0pl1-110

2010-05-09 Thread Ron Johnson

On 05/09/2010 08:22 PM, Christian Kastner wrote:

tag 580938 confirmed pending
severity important
thanks  

On 05/10/2010 02:14 AM, Ron Johnson wrote:

My crontab entries all have this in them, so that emails to *not* get
sent:
MAILTO=

However, after the most recent upgrade, root has begun sending emails
each time that cron runs.


Indeed. The new mail processing code contains an error, it doesn't bail
out when it should on an empty MAILTO.

I committed a fix, it will be in the next upload.



Thanks.  So I live with this minor aggravation for 10 days while it 
sits in the NEW queue?


--
Dissent is patriotic, remember?



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org