summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarol Lewandowski <k.lewandowsk@samsung.com>2019-04-17 14:59:36 +0200
committerKarol Lewandowski <k.lewandowsk@samsung.com>2019-04-18 12:24:34 +0200
commit4b321088c6090c251fbe1aa96acb812d21c47914 (patch)
tree828bfb7f8f04ef7b093742d57674899355785587
parent869b5f1ee6670f8aa6b85d5e1eccceeebafc58dd (diff)
downloadcrash-worker-4b321088c6090c251fbe1aa96acb812d21c47914.tar.gz
crash-worker-4b321088c6090c251fbe1aa96acb812d21c47914.tar.bz2
crash-worker-4b321088c6090c251fbe1aa96acb812d21c47914.zip
log_dump: Create temp dir if nonexistent
Other directories are created already (log, debug). Change-Id: Idade13c1bf10df09ef36dd71a449c216eb27a6dc
-rw-r--r--src/log_dump/log_dump.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/log_dump/log_dump.c b/src/log_dump/log_dump.c
index cfec34c..03d1b0f 100644
--- a/src/log_dump/log_dump.c
+++ b/src/log_dump/log_dump.c
@@ -94,6 +94,7 @@ static bool init_vars(const char *crash_root)
|| asprintf(&dir_temp, "%s/temp", crash_root) <= 0)
goto fail;
+ make_dir(crash_root, "temp", DIR_UMASK);
if (!init_temp_dir(dir_temp, &dir_temp_logdump))
goto fail;