diff options
author | Tim Pepper <timothy.c.pepper@linux.intel.com> | 2012-09-11 09:35:53 -0700 |
---|---|---|
committer | Tim Pepper <timothy.c.pepper@linux.intel.com> | 2012-09-11 09:35:53 -0700 |
commit | 94fdec6803608d4e1519631325c623c4a583f554 (patch) | |
tree | a54e880abf25fd78fa65a3c28a89494a52f54d34 | |
parent | 32cf572989f1aa73eedc09eb5db44807c031e952 (diff) | |
download | corewatcher-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.c | 3 |
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); |