Bug 508472 - /etc/cron.daily/0logwatch corrupted ?
Summary: /etc/cron.daily/0logwatch corrupted ?
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: logwatch
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Ivana Varekova
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-06-27 14:40 UTC by Tom London
Modified: 2009-07-10 06:31 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-07-10 06:31:24 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Tom London 2009-06-27 14:40:48 UTC
Description of problem:

[root@tlondon ~]# cat /etc/cron.daily/0logwatch 
#!/bin/bash

DailyReport=

if [  != "No" ] && [  != "no" ]
then
    logwatch
fi
[root@tlondon ~]# 

Downgrading to logwatch-7.3.6-43.fc12.noarch fixes.....

Version-Release number of selected component (if applicable):
logwatch-7.3.6-44.fc12.noarch

How reproducible:
Yup.

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Yanko Kaneti 2009-06-29 08:33:03 UTC
Same here

Comment 2 Ivana Varekova 2009-07-02 08:53:27 UTC
ops, thanks, fixed in logwatch-7.3.6-45.fc12.

Comment 3 Yanko Kaneti 2009-07-06 10:59:30 UTC
logwatch-7.3.6-45.fc12.noarch

# /etc/cron.daily/0logwatch 
/etc/cron.daily/0logwatch: line 5: [: !=: unary operator expected

perhaps you meant
-if [ \$DailyReport != "No" ] && [ \$DailyReport != "no" ]
+if [ "\$DailyReport" != "No" ] && [ "\$DailyReport" != "no" ]

Comment 4 Ivana Varekova 2009-07-07 11:19:57 UTC
sorry, logwatch-7.3.6-46.fc12 should fix it.


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