1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-08 11:27:32 +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
Notes: Lennart Poettering 2014-06-27 20:22:17 +02:00
Backport: bugfix

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;