29 lines
925 B
Diff
29 lines
925 B
Diff
diff -urp audit-1.7.9.orig/src/ausearch-time.c audit-1.7.9/src/ausearch-time.c
|
|
--- audit-1.7.9.orig/src/ausearch-time.c 2008-10-25 08:25:39.000000000 -0400
|
|
+++ audit-1.7.9/src/ausearch-time.c 2008-10-27 08:11:49.000000000 -0400
|
|
@@ -282,7 +282,7 @@ int ausearch_time_start(const char *da,
|
|
} else {
|
|
int keyword=lookup_time(da);
|
|
if (keyword == T_RECENT || keyword == T_NOW) {
|
|
- if (ti == NULL)
|
|
+ if (ti == NULL || strcmp(ti, "00:00:00") == 0)
|
|
goto set_it;
|
|
}
|
|
}
|
|
@@ -352,13 +352,13 @@ int ausearch_time_end(const char *da, co
|
|
} else {
|
|
int keyword=lookup_time(da);
|
|
if (keyword == T_RECENT || keyword == T_NOW) {
|
|
- if (ti == NULL)
|
|
+ if (ti == NULL || strcmp(ti, "00:00:00") == 0)
|
|
goto set_it;
|
|
}
|
|
// Special case today
|
|
if (keyword == T_TODAY) {
|
|
set_tm_now(&d);
|
|
- if (ti == NULL)
|
|
+ if (ti == NULL || strcmp(ti, "00:00:00") == 0)
|
|
goto set_it;
|
|
}
|
|
}
|