Even when there are utmpx files on this system we should also log to
the utmp files. If there are no utmp files we of course don't have to log to them. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@918 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -44,7 +44,6 @@ RCSID("$Id$");
|
||||
|
||||
void utmp_login(char *tty, char *username, char *hostname)
|
||||
{
|
||||
#ifndef HAVE_UTMPX
|
||||
struct utmp utmp;
|
||||
struct hostent *he;
|
||||
int fd;
|
||||
@@ -119,5 +118,4 @@ void utmp_login(char *tty, char *username, char *hostname)
|
||||
write(fd, (char *)&utmp, sizeof(struct utmp));
|
||||
close(fd);
|
||||
}
|
||||
#endif /* HAVE_UTMPX */
|
||||
}
|
||||
|
Reference in New Issue
Block a user