Pass the executable name to the minicoredumper 97/210397/5
authorMateusz Moscicki <m.moscicki2@partner.samsung.com>
Thu, 18 Jul 2019 15:58:38 +0000 (17:58 +0200)
committerKarol Lewandowski <k.lewandowsk@samsung.com>
Wed, 24 Jul 2019 10:23:44 +0000 (10:23 +0000)
Change-Id: Iccd4abead0a87873d05e05333630bd859d34ef46

src/crash-manager/crash-manager.c

index 030a1ce..fa24663 100644 (file)
@@ -748,7 +748,7 @@ static bool execute_minicoredump(struct crash_info *cinfo, int *exit_code)
                        sig_str,                   // %s - number of signal
                        time_str,                  // %t - time of dump
                        "localhost",               // %h - hostname
-                       "core",                    // %e - exe name (need for result filename)
+                       basename(cinfo->cmd_line), // %e - exe name (need for result filename)
                        MINICOREDUMPER_CONFIG_PATH, // config file
                        "-d",
                        cinfo->pfx,            // temp dir