summaryrefslogtreecommitdiffstats
path: root/updater
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2019-01-11 22:52:33 +0100
committerYifan Hong <elsk@google.com>2019-01-12 00:13:22 +0100
commit63f5260c6c7d3564a6b1a6e6b8a6a8a4e52fa617 (patch)
treeb9c669a9b75190e8b4dd393810181315fe491298 /updater
parentMerge "Use dynamically linked f2fs executables." (diff)
downloadandroid_bootable_recovery-63f5260c6c7d3564a6b1a6e6b8a6a8a4e52fa617.tar
android_bootable_recovery-63f5260c6c7d3564a6b1a6e6b8a6a8a4e52fa617.tar.gz
android_bootable_recovery-63f5260c6c7d3564a6b1a6e6b8a6a8a4e52fa617.tar.bz2
android_bootable_recovery-63f5260c6c7d3564a6b1a6e6b8a6a8a4e52fa617.tar.lz
android_bootable_recovery-63f5260c6c7d3564a6b1a6e6b8a6a8a4e52fa617.tar.xz
android_bootable_recovery-63f5260c6c7d3564a6b1a6e6b8a6a8a4e52fa617.tar.zst
android_bootable_recovery-63f5260c6c7d3564a6b1a6e6b8a6a8a4e52fa617.zip
Diffstat (limited to 'updater')
-rw-r--r--updater/blockimg.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/updater/blockimg.cpp b/updater/blockimg.cpp
index 9d5b01734..e35d48368 100644
--- a/updater/blockimg.cpp
+++ b/updater/blockimg.cpp
@@ -53,6 +53,7 @@
#include <ziparchive/zip_archive.h>
#include "edify/expr.h"
+#include "otautil/dirutil.h"
#include "otautil/error_code.h"
#include "otautil/paths.h"
#include "otautil/print_sha1.h"
@@ -878,7 +879,7 @@ static int CreateStash(State* state, size_t maxblocks, const std::string& base)
size_t max_stash_size = maxblocks * BLOCKSIZE;
if (res == -1) {
LOG(INFO) << "creating stash " << dirname;
- res = mkdir(dirname.c_str(), STASH_DIRECTORY_MODE);
+ res = mkdir_recursively(dirname, STASH_DIRECTORY_MODE, false, nullptr);
if (res != 0) {
ErrorAbort(state, kStashCreationFailure, "mkdir \"%s\" failed: %s", dirname.c_str(),