Lines Matching refs:state_file
64 s->state_file = strappend("/run/systemd/sessions/", id);
65 if (!s->state_file) {
72 free(s->state_file);
77 s->id = basename(s->state_file);
81 free(s->state_file);
147 free(s->state_file);
176 r = fopen_temporary(s->state_file, &f, &temp_path);
295 if (rename(temp_path, s->state_file) < 0) {
303 (void) unlink(s->state_file);
308 return log_error_errno(r, "Failed to save session data %s: %m", s->state_file);
330 r = parse_env_file(s->state_file, NEWLINE,
355 return log_error_errno(r, "Failed to read %s: %m", s->state_file);
696 (void) unlink(s->state_file);