]> git.pld-linux.org Git - packages/clamav.git/commitdiff
- one fix is enough (revert previous one)
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 21 Oct 2009 13:00:50 +0000 (13:00 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- avoid divide by zero

Changed files:
    clamav-cron-updatedb -> 1.11

clamav-cron-updatedb

index 73f2493dcfd78e749635806c19e6a53f01a39870..0eb7d8b6185d2c23264477289b9218b7e51fda83 100644 (file)
@@ -9,7 +9,10 @@ fi
 
 hour=$(LC_ALL=C date '+%k')
 
-div=$((hour % ${UPDATE_HOUR#0}))
+# skip divide errors
+[ "$hour" = "0" ] && exit 0
+
+div=$((hour % $UPDATE_HOUR))
 
 [ "$div" = "0" ] || exit 0
 
This page took 0.033075 seconds and 4 git commands to generate.