Search for core_* instead of core.*
authorTim Pepper <timothy.c.pepper@linux.intel.com>
Tue, 11 Sep 2012 00:56:00 +0000 (17:56 -0700)
committerTim Pepper <timothy.c.pepper@linux.intel.com>
Tue, 11 Sep 2012 00:56:00 +0000 (17:56 -0700)
This is pretty arbitrary, but that happens to be what's checked into
nitra's config files currently.  Eventually we'll be called dynamically
by systemd probably when it receives things regarding which we've asked
to be notified.

Signed-off-by: Tim Pepper <timothy.c.pepper@linux.intel.com>
src/coredump.c

index e34ab56..0abd4d6 100644 (file)
@@ -768,7 +768,7 @@ int scan_corefolders(void __unused *unused)
                        break;
                if (entry->d_name[0] == '.')
                        continue;
-               if (strncmp(entry->d_name, "core.", 5))
+               if (strncmp(entry->d_name, "core_", 5))
                        continue;
 
                /* matched core.#### where #### is the processes pid */