]> granicus.if.org Git - cronie/commitdiff
0anacron should check only readability.
authorAndrew Man-Hon Lau <amlau@alum.mit.edu>
Thu, 25 Mar 2010 06:50:19 +0000 (07:50 +0100)
committerMarcela Mašláňová <mmaslano@redhat.com>
Thu, 25 Mar 2010 06:50:19 +0000 (07:50 +0100)
Signed-off-by: Marcela Mašláňová <mmaslano@redhat.com>
contrib/0anacron

index 7d48cf9cbca6426f7936fb0cafd16b50d4b3c09c..6835088ecc3d86121a2f0821bff0b0be7b59919d 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/bash
 #in case file doesn't exist 
-if test -x /var/spool/anacron/cron.daily; then
+if test -r /var/spool/anacron/cron.daily; then
     day=`cat /var/spool/anacron/cron.daily`
 fi
 if [ `date +%Y%m%d` = "$day" ]; then