Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 131583 - logrotate can not send any mails
logrotate can not send any mails
Product: Fedora
Classification: Fedora
Component: logrotate (Show other bugs)
All Linux
medium Severity high
: ---
: ---
Assigned To: Cristian Gafton
Depends On:
Blocks: FC3Target
  Show dependency treegraph
Reported: 2004-09-02 11:35 EDT by Ruediger Oertel
Modified: 2007-11-30 17:10 EST (History)
0 users

See Also:
Fixed In Version: 3.7.1-2
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-10-19 17:57:49 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Ruediger Oertel 2004-09-02 11:35:43 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (compatible; Konqueror/3.2; Linux) (KHTML, like Gecko)

Description of problem:
logrotate was changed to use execvp/execlp instead of system
to compress/mail log files.

this is used to do this:         execvp(mailArgv[0], mailArgv);
with: char * mailArgv[] = { mailCommand, "-s", subject, address, NULL };

and char * mailCommand = DEFAULT_MAIL_COMMAND;

now DEFAULT_MAIL_COMMAND is defined in config.h and reads:
    #define DEFAULT_MAIL_COMMAND "/bin/mail -s"

with the result: execvp: no such file or directory
true, since there is no binary called "/bin/mail -s" ...

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:

Additional info:
Comment 1 Miloslav Trmač 2004-10-19 17:57:49 EDT
Fixed in logrotate-3.7.1-2. Thanks for your report.

Note You need to log in before you can comment on or make changes to this bug.