Bug 254220 - Error first time run-parts is run
Summary: Error first time run-parts is run
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: crontabs
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Marcela Mašláňová
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 258541 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-08-24 20:12 UTC by Orion Poplawski
Modified: 2007-11-30 22:12 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-08-27 06:34:44 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Orion Poplawski 2007-08-24 20:12:25 UTC
Description of problem:


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

First time run-parts is run:

cat: /var/spool/anacron/cron.daily: No such file or directory
/usr/bin/run-parts: line 5: [: ==: unary operator expected

This should fix:


--- /usr/bin/run-parts.orig     2007-08-24 14:08:31.000000000 -0600
+++ /usr/bin/run-parts  2007-08-24 14:08:48.000000000 -0600
@@ -2,7 +2,7 @@
 # if cron.daily was run today
 AUX1=`cat /var/spool/anacron/cron.daily`
 AUX2=`date +%Y%m%d`
-[ $AUX1 == $AUX2 ] || exit 0
+[ "$AUX1" == $AUX2 ] || exit 0

 # run-parts - concept taken from Debian

Comment 1 Marcela Mašláňová 2007-08-27 06:34:44 UTC
Fixed in devel version of crontabs-1.10-16

Comment 2 Marcela Mašláňová 2007-08-28 06:59:50 UTC
*** Bug 258541 has been marked as a duplicate of this bug. ***


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