X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fexecute.c;h=250d53a424a07655929439929a62a56d6eec99c0;hp=866e8bf2f69ed9e088e47dea5afd3eebff44d851;hb=9f84624270432cdff35c4f499fbdb9e0f94fe705;hpb=263653e10353d8ad155f1faba01981816a2bb712 diff --git a/src/execute.c b/src/execute.c index 866e8bf2f..250d53a42 100644 --- a/src/execute.c +++ b/src/execute.c @@ -1170,7 +1170,7 @@ int exec_spawn(ExecCommand *command, } if (context->utmp_id) - utmp_put_init_process(0, context->utmp_id, getpid(), getsid(0), context->tty_path); + utmp_put_init_process(context->utmp_id, getpid(), getsid(0), context->tty_path); if (context->user) { username = context->user;