Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 83648 - fcron-2.9.5.1 sends mails without body
Summary: fcron-2.9.5.1 sends mails without body
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Cron Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-01 02:01 UTC by mathieu
Modified: 2005-03-08 05:23 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
this fix seems to work for me (fcron-mail-patch.diff,414 bytes, patch)
2005-03-06 22:31 UTC, Dmitry Karasik
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description mathieu 2005-03-01 02:01:00 UTC
fcron sends mail without body. sendmail is called with '-Froot -odi mathieu' as args. I've changed the config to use a stdin dumper instead of sendmail and there is no stdin at all.

Here is an e-mail from fcron as I see it after checking it in kmail.

Return-Path: <root@mat.depardo.kn>
X-Original-To: mathieu
Delivered-To: mathieu@mat.depardo.kn
Received: by mat.depardo.kn (Postfix, from userid 0)
	id 07C941802C; Tue,  1 Mar 2005 10:51:54 +0100 (CET)
Message-Id: <20050301095154.07C941802C@mat.depardo.kn>
Date: Tue,  1 Mar 2005 10:51:54 +0100 (CET)
From: root@mat.depardo.kn (fcron)
To: undisclosed-recipients:;
Status: R
X-Status: NC

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




fcron version and flags:
sys-apps/fcron-2.9.5.1-r2  -debug -doc +pam (-selinux)

and postfix's
mail-mta/postfix-2.1.5-r2  +ipv6 -ldap +mailwrapper +mbox -mysql +pam -postgres
-sasl (-selinux) +ssl -vda
Comment 1 Bardur Arantsson 2005-03-02 04:04:50 UTC
This has also been happening on one of my machines. The configuration:

  AMD64 machine running Linux-2.6.10-as6.

  fcron 2.9.5.1-r2:
    -debug -doc +pam (-selinux)

  exim-4.43-r2:
    -X -dnsdb -exiscan +exiscan-acl +ipv6 -ldap -lmtp -mailwrapper
    -mbox -mysql -nis +pam +perl -postgres -sasl +ssl -syslog +tcpd

... so it doesn't appear to be MTA-related.
Comment 2 Rob Kruus 2005-03-04 12:41:49 UTC
Same here (usinf esmtp for local mail delivery).  I notice however, the mail is fine when the program returns exit status 1.  Whenever the exit status is 0, the mail is blank.
Comment 3 mathieu 2005-03-04 14:47:06 UTC
great! that at least gives me a workaround (however stupid) to have the output of my cronjobs back:

&bootrun 00 6  * * * /local/sbin/freshPortage.sh -nocolor && exit 1
Comment 4 Dmitry Karasik 2005-03-06 22:31:21 UTC
Created attachment 52829 [details, diff]
this fix seems to work for me

Is this a new change in glibc that fseek() doesn't immediately call lseek()?
Comment 5 Bardur Arantsson 2005-03-07 23:04:32 UTC
that fixes it for me. :)
Comment 6 mathieu 2005-03-07 23:42:54 UTC
for me too. thanks.
Comment 7 Aaron Walker (RETIRED) gentoo-dev 2005-03-08 03:07:17 UTC
Just dropping a note saying I'm working on this, so you guys don't think it's going ignored.  I'll test the patch and barring any problems will have this FIXED today or tomorrow at the latest.
Comment 8 Aaron Walker (RETIRED) gentoo-dev 2005-03-08 05:23:08 UTC
Patch looks good.  Fixes it here as well.

-r3 is in cvs.  Thanks guys.