1
1
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:
Michał Bartoszkiewicz 2014-06-26 10:16:27 +02:00 committed by Zbigniew Jędrzejewski-Szmek
parent 8ac8c5817f
commit bd34b310fb

View File

@ -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;