Make sure to create an ut_id.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1625 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -65,6 +65,7 @@ utmpx_login(char *line, char *user, char *host)
|
|||||||
struct utmpx newut;
|
struct utmpx newut;
|
||||||
memset(&newut, 0, sizeof(newut));
|
memset(&newut, 0, sizeof(newut));
|
||||||
newut.ut_pid = mypid;
|
newut.ut_pid = mypid;
|
||||||
|
sprintf(newut.ut_id, "lo%04x", mypid);
|
||||||
utmpx_update(&newut, line, user, host);
|
utmpx_update(&newut, line, user, host);
|
||||||
ret = 0;
|
ret = 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user