Also retain the text-version of the backtrace when config file requests.
authorAuke Kok <auke-jan.h.kok@intel.com>
Wed, 2 Feb 2011 16:13:41 +0000 (11:13 -0500)
committerAuke Kok <auke-jan.h.kok@intel.com>
Wed, 2 Feb 2011 16:13:41 +0000 (11:13 -0500)
submit.c

index 2b52cd1..1ede618 100644 (file)
--- a/submit.c
+++ b/submit.c
@@ -36,6 +36,8 @@
 
 #include "corewatcher.h"
 
+extern int do_unlink;
+
 
 /*
  * we keep track of 16 checksums of the last submitted oopses; this allows us to
@@ -146,7 +148,8 @@ void write_detail_file(void)
 void unlink_detail_file(void)
 {
        if (detail_filename) {
-               unlink(detail_filename);
+               if (do_unlink)
+                       unlink(detail_filename);
                free(detail_filename);
        }
 }