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:
parent
8ac8c5817f
commit
bd34b310fb
Notes:
Lennart Poettering
2014-06-27 20:22:17 +02:00
Backport: bugfix
@ -131,7 +131,7 @@ static int timer_setup_persistent(Timer *t) {
|
|||||||
|
|
||||||
e = getenv("XDG_DATA_HOME");
|
e = getenv("XDG_DATA_HOME");
|
||||||
if (e)
|
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 {
|
else {
|
||||||
|
|
||||||
_cleanup_free_ char *h = NULL;
|
_cleanup_free_ char *h = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user