+
+int is_abrt_dump_dir(const char *dirname)
+{
+ if ((strncmp(dirname, "ccpp-", strlen("ccpp-")) != 0)
+&& (strncmp(dirname, "oops-", strlen("oops-")) != 0)
+&& (strncmp(dirname, "python-", strlen("python-")) != 0))
+ {
+ VERB2 log("'%s' is not an abrt directory", dirname);
+ return 0;
+ }
+
+ return -1;
+}
really strong NACK for this, this would kill all of our flexibility...
How about something more generic like checking existence of file
"analyzer" ? Or file (analyzer && os_release) ?
J.