diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2019-01-15 08:25:11 +0100 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2019-01-15 08:25:11 +0100 |
commit | ce83dc15946c4eec303df697d69ca317ff2ea9d0 (patch) | |
tree | a8268c4892317ecb7a494aad95281fbeada21961 | |
parent | Snap for 5217728 from 0c92531f5861dc39c0914442c896d4b0ae4d848f to qt-release (diff) | |
parent | Merge "Create stash dir recursively." am: 7a0b65472b am: 32932a48f9 (diff) | |
download | android_bootable_recovery-ce83dc15946c4eec303df697d69ca317ff2ea9d0.tar android_bootable_recovery-ce83dc15946c4eec303df697d69ca317ff2ea9d0.tar.gz android_bootable_recovery-ce83dc15946c4eec303df697d69ca317ff2ea9d0.tar.bz2 android_bootable_recovery-ce83dc15946c4eec303df697d69ca317ff2ea9d0.tar.lz android_bootable_recovery-ce83dc15946c4eec303df697d69ca317ff2ea9d0.tar.xz android_bootable_recovery-ce83dc15946c4eec303df697d69ca317ff2ea9d0.tar.zst android_bootable_recovery-ce83dc15946c4eec303df697d69ca317ff2ea9d0.zip |
-rw-r--r-- | updater/blockimg.cpp | 3 |
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(), |