From 76272812c00f6116bc7bf42eaed31b6c4d743497 Mon Sep 17 00:00:00 2001 From: Edward Rudd Date: Mon, 27 Oct 2008 02:13:07 +0000 Subject: only find files IF no file was passed on the command line --- (limited to 'utility') diff --git a/utility/shell.c b/utility/shell.c index 6f98055..2c19bb4 100644 --- a/utility/shell.c +++ b/utility/shell.c @@ -181,8 +181,10 @@ int main(int argc, const char *const argv[]) exit(1); } - // Find files and parse - parser_find_logs(cfg); + // Only Find files IF no filename was passed via the command line + if (apr_is_empty_array(cfg->input_files)) { + parser_find_logs(cfg); + } if (!cfg->dryrun) { if ((rv = database_connect(cfg))) { logging_log(cfg,LOGLEVEL_NOISE, "Error Connecting to Database"); -- cgit v0.9.2