From: Kern Sibbald Date: Wed, 9 Apr 2014 17:27:38 +0000 (+0200) Subject: Fix Bacula bug #2046 -- sellist limited to 10000 X-Git-Tag: Release-7.0.3~29 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d0e58f3faa08aa64176331814f51c6dd7e26f309;p=bacula%2Fbacula Fix Bacula bug #2046 -- sellist limited to 10000 --- diff --git a/bacula/src/lib/sellist.c b/bacula/src/lib/sellist.c index 3f58de04ec..003fec77cb 100644 --- a/bacula/src/lib/sellist.c +++ b/bacula/src/lib/sellist.c @@ -105,10 +105,6 @@ int64_t sellist::next() errmsg = _("Selection items must be be greater than zero.\n"); goto bail_out; } - if (end > max) { - errmsg = _("Selection item too large.\n"); - goto bail_out; - } if (beg <= end) { return beg++; } diff --git a/bacula/src/lib/sellist.h b/bacula/src/lib/sellist.h index e075191e4f..c9716a0eea 100644 --- a/bacula/src/lib/sellist.h +++ b/bacula/src/lib/sellist.h @@ -37,7 +37,6 @@ class sellist : public SMARTALLOC { char esave, hsave; bool all; int64_t beg, end; - int64_t max; int num_items; char *str; char *expanded; @@ -64,7 +63,6 @@ public: inline sellist::sellist() { num_items = 0; - max = 99999; expanded = NULL; str = NULL; e = NULL;