Searched refs:tmp_target_filename (Results 1 – 1 of 1) sorted by relevance
/bootable/recovery/applypatch/ |
D | applypatch.cpp | 783 const std::string tmp_target_filename = std::string(target_filename) + ".patch"; in GenerateTarget() local 899 output_fd = ota_open(tmp_target_filename.c_str(), O_WRONLY | O_CREAT | O_TRUNC | O_SYNC, in GenerateTarget() 902 printf("failed to open output file %s: %s\n", tmp_target_filename.c_str(), in GenerateTarget() 924 printf("failed to fsync file \"%s\" (%s)\n", tmp_target_filename.c_str(), in GenerateTarget() 929 printf("failed to close file \"%s\" (%s)\n", tmp_target_filename.c_str(), in GenerateTarget() 943 unlink(tmp_target_filename.c_str()); in GenerateTarget() 970 if (chmod(tmp_target_filename.c_str(), source_to_use->st.st_mode) != 0) { in GenerateTarget() 971 printf("chmod of \"%s\" failed: %s\n", tmp_target_filename.c_str(), strerror(errno)); in GenerateTarget() 974 … if (chown(tmp_target_filename.c_str(), source_to_use->st.st_uid, source_to_use->st.st_gid) != 0) { in GenerateTarget() 975 printf("chown of \"%s\" failed: %s\n", tmp_target_filename.c_str(), strerror(errno)); in GenerateTarget() [all …]
|