Lines Matching full:copy_path
480 char copy_path[PATH_MAX];
481 strcpy(copy_path, SIDELOAD_TEMP_DIR);
482 strcat(copy_path, "/package.zip");
496 FILE* fout = fopen(copy_path, "wb");
498 LOGE("Failed to open %s (%s)\n", copy_path, strerror(errno));
504 LOGE("Short write of %s (%s)\n", copy_path, strerror(errno));
512 LOGE("Failed to close %s (%s)\n", copy_path, strerror(errno));
523 if (chmod(copy_path, 0400) != 0) {
524 LOGE("Failed to chmod %s (%s)\n", copy_path, strerror(errno));
528 return strdup(copy_path);