Denys Vlasenko <dvlasenk(a)redhat.com> writes:
On Thu, 2011-08-04 at 16:37 +0200, Nikola Pajkovsky wrote:
> - if (opts & OPT_d)
> - {
> - log("Creating dump directories");
> - errors += save_oops_to_dump_dir(oops_list, oops_cnt);
> - if (errors > 0)
> - log("%d errors while dumping oopses", errors);
> - /*
> - * This marker in syslog file prevents us from
> - * re-parsing old oopses. The only problem is that we
> - * can't be sure here that the file we are watching
> - * is the same file where syslog(xxx) stuff ends up.
> - */
> - syslog(LOG_WARNING,
> - "Reported %u kernel oopses to Abrt",
> - oops_cnt
> +
> + load_abrt_conf();
> + if (!(opts & OPT_d))
> + debug_dumps_dir = g_settings_dump_location;
> +
> + log("Creating dump directories");
Well, the idea was that *without* -d DIR, directories
are *not created*.
I propose adding -D flag which is equivalent to -d DIR_FROM_abrt.conf
added -D, patch should be in ml
--
Save the whales. Feed the hungry. Free the mallocs