X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;ds=sidebyside;f=src%2Fexecute.c;h=250d53a424a07655929439929a62a56d6eec99c0;hb=0ad26e09de813857382ec3a787fc6df5e52cf98b;hp=866e8bf2f69ed9e088e47dea5afd3eebff44d851;hpb=64685e0cea62b4937f0804e47ce2cb7929f58223;p=elogind.git 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;