Home
last modified time | relevance | path

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

/bootable/recovery/updater/
Dblockimg.cpp145 std::string last_command_tmp = last_command_file + ".tmp"; in UpdateLastCommandIndex() local
148 TEMP_FAILURE_RETRY(open(last_command_tmp.c_str(), O_WRONLY | O_CREAT | O_TRUNC, 0660))); in UpdateLastCommandIndex()
155 PLOG(ERROR) << "Failed to fsync " << last_command_tmp; in UpdateLastCommandIndex()
159 if (chown(last_command_tmp.c_str(), AID_SYSTEM, AID_SYSTEM) == -1) { in UpdateLastCommandIndex()
160 PLOG(ERROR) << "Failed to change owner for " << last_command_tmp; in UpdateLastCommandIndex()
164 if (rename(last_command_tmp.c_str(), last_command_file.c_str()) == -1) { in UpdateLastCommandIndex()
165 PLOG(ERROR) << "Failed to rename" << last_command_tmp; in UpdateLastCommandIndex()