Lines Matching defs:temp_path
79 char *temp_path;
99 if (i->temp_path) {
100 (void) unlink(i->temp_path);
101 free(i->temp_path);
255 (void) unlink(i->temp_path);
256 free(i->temp_path);
257 i->temp_path = t;
441 r = rename_noreplace(AT_FDCWD, i->temp_path, AT_FDCWD, i->final_path);
447 i->temp_path = mfree(i->temp_path);
495 assert(!i->temp_path);
501 r = tempfn_random(i->final_path, NULL, &i->temp_path);
505 (void) mkdir_parents_label(i->temp_path, 0700);
507 j->disk_fd = open(i->temp_path, O_RDWR|O_CREAT|O_EXCL|O_NOCTTY|O_CLOEXEC, 0664);
509 return log_error_errno(errno, "Failed to create %s: %m", i->temp_path);
513 log_warning_errno(r, "Failed to set file attributes on %s: %m", i->temp_path);