mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-24 21:34:08 +03:00
timer: name the stamp file consistently
The stamp file for systemd --user timers was named stamp-foo.timer if XDG_DATA_HOME was unset, but foo.timer otherwise.
This commit is contained in:
parent
8ac8c5817f
commit
bd34b310fb
@ -131,7 +131,7 @@ static int timer_setup_persistent(Timer *t) {
|
||||
|
||||
e = getenv("XDG_DATA_HOME");
|
||||
if (e)
|
||||
t->stamp_path = strjoin(e, "/systemd/timers/", UNIT(t)->id, NULL);
|
||||
t->stamp_path = strjoin(e, "/systemd/timers/stamp-", UNIT(t)->id, NULL);
|
||||
else {
|
||||
|
||||
_cleanup_free_ char *h = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user