From: Frédéric Marchal Date: Sat, 18 Sep 2010 12:37:29 +0000 (+0000) Subject: Report an error if the requested date range is invalid. Previous versions would silen... X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=848b772226cef10f9a1e50a24f4d8c0d08b58c1b;p=thirdparty%2Fsarg.git Report an error if the requested date range is invalid. Previous versions would silently ignore the date range and take whatever was in the log. --- diff --git a/util.c b/util.c index 6c6439c..de65878 100644 --- a/util.c +++ b/util.c @@ -1271,6 +1271,9 @@ void date_from(char *date, int *dfrom, int *duntil) y1=Date0->tm_year+1900; m1=Date0->tm_mon+1; d1=Date0->tm_mday; + } else { + debuga(_("Invalid date range passed on command line\n")); + exit(EXIT_FAILURE); } }