Home
last modified time | relevance | path

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

/bootable/recovery/
Drecovery.cpp373 char copy_path[PATH_MAX]; in copy_sideloaded_package() local
374 strcpy(copy_path, SIDELOAD_TEMP_DIR); in copy_sideloaded_package()
375 strcat(copy_path, "/package.zip"); in copy_sideloaded_package()
389 FILE* fout = fopen(copy_path, "wb"); in copy_sideloaded_package()
391 LOGE("Failed to open %s (%s)\n", copy_path, strerror(errno)); in copy_sideloaded_package()
397 LOGE("Short write of %s (%s)\n", copy_path, strerror(errno)); in copy_sideloaded_package()
405 LOGE("Failed to close %s (%s)\n", copy_path, strerror(errno)); in copy_sideloaded_package()
416 if (chmod(copy_path, 0400) != 0) { in copy_sideloaded_package()
417 LOGE("Failed to chmod %s (%s)\n", copy_path, strerror(errno)); in copy_sideloaded_package()
421 return strdup(copy_path); in copy_sideloaded_package()