diff options
author | Damien Miller <djm@mindrot.org> | 2000-05-31 13:57:18 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-05-31 13:57:18 +1000 |
commit | 1c77392bce06d3f354fe1a3efa4e336c68933807 (patch) | |
tree | 8dc7ee3a8a0ea73552c1b752528111b45fbef4cd /login.c | |
parent | 1ea8ac7b90c2002ee6041fb90e1f94c7f8a94608 (diff) |
- Rewrote bsd-login to use proper utmp API if available. Major cleanupPRE_NEW_LOGIN_CODE
of fallback DIY code.
Diffstat (limited to 'login.c')
-rw-r--r-- | login.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -18,7 +18,7 @@ */ #include "includes.h" -RCSID("$Id: login.c,v 1.29 2000/05/31 01:20:12 damien Exp $"); +RCSID("$Id: login.c,v 1.30 2000/05/31 03:57:19 damien Exp $"); #if defined(HAVE_UTMPX_H) && defined(USE_UTMPX) # include <utmpx.h> @@ -253,7 +253,7 @@ record_login(pid_t pid, const char *ttyname, const char *user, uid_t uid, #endif /* defined(HAVE_UTMPX_H) && defined(USE_UTMPX) */ #if defined(HAVE_UTMPX_H) && defined(USE_UTMPX) - login(&u, &utx); + login(&utx); #else /* defined(HAVE_UTMPX_H) && defined(USE_UTMPX) */ login(&u); #endif /* defined(HAVE_UTMPX_H) && defined(USE_UTMPX) */ |