summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Pepper <timothy.c.pepper@linux.intel.com>2012-09-11 09:35:53 -0700
committerTim Pepper <timothy.c.pepper@linux.intel.com>2012-09-11 09:35:53 -0700
commit94fdec6803608d4e1519631325c623c4a583f554 (patch)
treea54e880abf25fd78fa65a3c28a89494a52f54d34
parent32cf572989f1aa73eedc09eb5db44807c031e952 (diff)
downloadcorewatcher-94fdec6803608d4e1519631325c623c4a583f554.tar.gz
corewatcher-94fdec6803608d4e1519631325c623c4a583f554.tar.bz2
corewatcher-94fdec6803608d4e1519631325c623c4a583f554.zip
Open /var/lib/corewatcher correctly after creation
Signed-off-by: Tim Pepper <timothy.c.pepper@linux.intel.com>
-rw-r--r--src/coredump.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/coredump.c b/src/coredump.c
index e071390..555d8fa 100644
--- a/src/coredump.c
+++ b/src/coredump.c
@@ -806,6 +806,9 @@ int scan_corefolders(void __unused *unused)
&& errno != EEXIST) {
return 1;
}
+ dir = opendir(core_folder);
+ if (!dir)
+ return 1;
}
fprintf(stderr, "+ scanning %s...\n", core_folder);