]> git.tuebingen.mpg.de Git - dss.git/commitdiff
Merge branch 't/zero-rsync-fix'
authorAndre Noll <maan@systemlinux.org>
Thu, 20 Dec 2012 13:36:42 +0000 (14:36 +0100)
committerAndre Noll <maan@systemlinux.org>
Thu, 20 Dec 2012 13:36:42 +0000 (14:36 +0100)
dss.c

diff --git a/dss.c b/dss.c
index 354bdb847095d0dd2b6a2346b9bdceaae7977d0d..11c1d06554f9dcb95599fa2a5dc2bd6f9ee21e4b 100644 (file)
--- a/dss.c
+++ b/dss.c
@@ -939,8 +939,9 @@ static int check_config(void)
                return -E_INVALID_NUMBER;
        }
        DSS_DEBUG_LOG(("unit interval: %i day(s)\n", conf.unit_interval_arg));
-       if (conf.num_intervals_arg <= 0) {
-               DSS_ERROR_LOG(("bad number of intervals  %i\n", conf.num_intervals_arg));
+       if (conf.num_intervals_arg <= 0 || conf.num_intervals_arg > 30) {
+               DSS_ERROR_LOG(("bad number of intervals: %i\n",
+                       conf.num_intervals_arg));
                return -E_INVALID_NUMBER;
        }
        DSS_DEBUG_LOG(("number of intervals: %i\n", conf.num_intervals_arg));