(utmpx_update): Set `ut_id' if we're using utmpx

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1786 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-05-30 02:21:41 +00:00
parent 2a4486f71c
commit 4fc60aacd1

View File

@@ -16,6 +16,9 @@ utmpx_update(struct utmpx *ut, char *line, char *user, char *host)
struct timeval tmp;
strncpy(ut->ut_line, clean_ttyname(line), sizeof(ut->ut_line));
#ifdef HAVE_UT_ID
strncpy(ut->ut_id, make_id(ut->ut_line), sizeof(ut->ut_id));
#endif
strncpy(ut->ut_user, user, sizeof(ut->ut_user));
strncpy(ut->ut_host, host, sizeof(ut->ut_host));
#ifdef HAVE_UT_SYSLEN