Home
last modified time | relevance | path

Searched refs:tmp_path (Results 1 – 2 of 2) sorted by relevance

/system/core/libsparse/
Dappend2simg.c61 char *tmp_path; in main() local
73 ret = asprintf(&tmp_path, "%s.append2simg", output_path); in main()
114 tmp_fd = open(tmp_path, O_WRONLY | O_CREAT | O_BINARY, 0664); in main()
131 ret = rename(tmp_path, output_path); in main()
137 free(tmp_path); in main()
/system/vold/
DExt4Crypt.cpp316 static bool store_key(const std::string& key_path, const std::string& tmp_path, in store_key() argument
322 if (path_exists(tmp_path)) { in store_key()
323 android::vold::destroyKey(tmp_path); // May be partially created so ignore errors in store_key()
325 if (!android::vold::storeKey(tmp_path, auth, key)) return false; in store_key()
326 if (rename(tmp_path.c_str(), key_path.c_str()) != 0) { in store_key()