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 07:18:27 -04:00
committed by Zbigniew Jędrzejewski-Szmek
parent 8ac8c5817f
commit bd34b310fb
+1 -1
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;