Cray rmut(3) needs ut_id.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1777 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -357,7 +357,7 @@ static char Xline[] = "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0";
|
|||||||
char *line = Xline;
|
char *line = Xline;
|
||||||
|
|
||||||
#ifdef _CRAY
|
#ifdef _CRAY
|
||||||
char *myline = "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0";
|
char myline[] = "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0";
|
||||||
#endif /* CRAY */
|
#endif /* CRAY */
|
||||||
|
|
||||||
#ifndef HAVE_PTSNAME
|
#ifndef HAVE_PTSNAME
|
||||||
@@ -1142,6 +1142,9 @@ startslave(char *host, int autologin, char *autoname)
|
|||||||
strncpy(wtmp.ut_user, "LOGIN", sizeof(wtmp.ut_user));
|
strncpy(wtmp.ut_user, "LOGIN", sizeof(wtmp.ut_user));
|
||||||
strncpy(wtmp.ut_host, host, sizeof(wtmp.ut_host));
|
strncpy(wtmp.ut_host, host, sizeof(wtmp.ut_host));
|
||||||
strncpy(wtmp.ut_line, clean_ttyname(line), sizeof(wtmp.ut_line));
|
strncpy(wtmp.ut_line, clean_ttyname(line), sizeof(wtmp.ut_line));
|
||||||
|
#ifdef _CRAY /* XXX */
|
||||||
|
strncpy(wtmp.ut_id, wtmp.ut_line + 3, sizeof(wtmp.ut_id));
|
||||||
|
#endif
|
||||||
|
|
||||||
pututline(&wtmp);
|
pututline(&wtmp);
|
||||||
endutent();
|
endutent();
|
||||||
|
Reference in New Issue
Block a user