Bug 254220

Summary: Error first time run-parts is run
Product: [Fedora] Fedora Reporter: Orion Poplawski <orion>
Component: crontabsAssignee: Marcela Mašláňová <mmaslano>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: cpreddy
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-08-27 06:34:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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. ***