Lines Matching defs:temp_path
59 char *temp_path;
89 if (i->temp_path) {
90 (void) unlink(i->temp_path);
91 free(i->temp_path);
210 (void) unlink(i->temp_path);
211 free(i->temp_path);
212 i->temp_path = t;
227 assert(i->temp_path);
254 r = rename_noreplace(AT_FDCWD, i->temp_path, AT_FDCWD, i->final_path);
258 i->temp_path = mfree(i->temp_path);
269 assert(!i->temp_path);
276 r = tempfn_random(i->final_path, NULL, &i->temp_path);
280 (void) mkdir_parents_label(i->temp_path, 0700);
282 i->output_fd = open(i->temp_path, O_RDWR|O_CREAT|O_EXCL|O_NOCTTY|O_CLOEXEC, 0664);
284 return log_error_errno(errno, "Failed to open destination %s: %m", i->temp_path);
288 log_warning_errno(r, "Failed to set file attributes on %s: %m", i->temp_path);