X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Ftimer.c;fp=src%2Fcore%2Ftimer.c;h=70aeedd3c76438725286eb7d0a830cd52d3c49f4;hb=fed1e721fd0c81e60c77120539f34e16c2585634;hp=fa134b13ad2c2d4750b2543dad2e62fc5a67a6ff;hpb=36afca67b67984520c5c9a6ce14af51a68c7c8cf;p=elogind.git diff --git a/src/core/timer.c b/src/core/timer.c index fa134b13a..70aeedd3c 100644 --- a/src/core/timer.c +++ b/src/core/timer.c @@ -505,7 +505,7 @@ static void timer_enter_running(Timer *t) { dual_timestamp_get(&t->last_trigger); if (t->stamp_path) - touch_file(t->stamp_path, true, t->last_trigger.realtime, (uid_t) -1, (gid_t) -1, 0); + touch_file(t->stamp_path, true, t->last_trigger.realtime, UID_INVALID, GID_INVALID, 0); timer_set_state(t, TIMER_RUNNING); return; @@ -543,7 +543,7 @@ static int timer_start(Unit *u) { /* The timer has never run before, * make sure a stamp file exists. */ - touch_file(t->stamp_path, true, (usec_t) -1, (uid_t) -1, (gid_t) -1, 0); + touch_file(t->stamp_path, true, (usec_t) -1, UID_INVALID, GID_INVALID, 0); } t->result = TIMER_SUCCESS;