summaryrefslogtreecommitdiff
path: root/login.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-05-31 13:57:18 +1000
committerDamien Miller <djm@mindrot.org>2000-05-31 13:57:18 +1000
commit1c77392bce06d3f354fe1a3efa4e336c68933807 (patch)
tree8dc7ee3a8a0ea73552c1b752528111b45fbef4cd /login.c
parent1ea8ac7b90c2002ee6041fb90e1f94c7f8a94608 (diff)
- Rewrote bsd-login to use proper utmp API if available. Major cleanup
of fallback DIY code.
Diffstat (limited to 'login.c')
-rw-r--r--login.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/login.c b/login.c
index 6fdc71e68..09e73b3de 100644
--- a/login.c
+++ b/login.c
@@ -18,7 +18,7 @@
18 */ 18 */
19 19
20#include "includes.h" 20#include "includes.h"
21RCSID("$Id: login.c,v 1.29 2000/05/31 01:20:12 damien Exp $"); 21RCSID("$Id: login.c,v 1.30 2000/05/31 03:57:19 damien Exp $");
22 22
23#if defined(HAVE_UTMPX_H) && defined(USE_UTMPX) 23#if defined(HAVE_UTMPX_H) && defined(USE_UTMPX)
24# include <utmpx.h> 24# include <utmpx.h>
@@ -253,7 +253,7 @@ record_login(pid_t pid, const char *ttyname, const char *user, uid_t uid,
253#endif /* defined(HAVE_UTMPX_H) && defined(USE_UTMPX) */ 253#endif /* defined(HAVE_UTMPX_H) && defined(USE_UTMPX) */
254 254
255#if defined(HAVE_UTMPX_H) && defined(USE_UTMPX) 255#if defined(HAVE_UTMPX_H) && defined(USE_UTMPX)
256 login(&u, &utx); 256 login(&utx);
257#else /* defined(HAVE_UTMPX_H) && defined(USE_UTMPX) */ 257#else /* defined(HAVE_UTMPX_H) && defined(USE_UTMPX) */
258 login(&u); 258 login(&u);
259#endif /* defined(HAVE_UTMPX_H) && defined(USE_UTMPX) */ 259#endif /* defined(HAVE_UTMPX_H) && defined(USE_UTMPX) */