[systemd-devel] [PATCH] timer: name the stamp file consistently

Michał Bartoszkiewicz mbartoszkiewicz at gmail.com
Thu Jun 26 01:16:27 PDT 2014


The stamp file for systemd --user timers was named stamp-foo.timer if
XDG_DATA_HOME was unset, but foo.timer otherwise.
---
 src/core/timer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/core/timer.c b/src/core/timer.c
index 6f2deda..e69dfbd 100644
--- a/src/core/timer.c
+++ b/src/core/timer.c
@@ -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;
-- 
2.0.0



More information about the systemd-devel mailing list