summaryrefslogtreecommitdiff
path: root/bsd-login.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>1999-11-25 13:08:31 +1100
committerDamien Miller <djm@mindrot.org>1999-11-25 13:08:31 +1100
commit063fdf82755e53b5a2cf5265aaa654969b23b459 (patch)
tree03686b2d3c1be5990c412720de4ff889f734c702 /bsd-login.c
parentd8087f62d6974c812fb956429ec0dba801ab66d3 (diff)
- Merged beginnings of AIX support from Tor-Ake Fransson <torake@hotmail.com>
Diffstat (limited to 'bsd-login.c')
-rw-r--r--bsd-login.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/bsd-login.c b/bsd-login.c
index 93f230266..dcbabe0bf 100644
--- a/bsd-login.c
+++ b/bsd-login.c
@@ -56,6 +56,14 @@ login(utp)
56 register int fd; 56 register int fd;
57 int tty; 57 int tty;
58 58
59#ifndef UT_LINESIZE
60# define UT_LINESIZE (sizeof(old_ut.ut_line))
61# define UT_NAMESIZE (sizeof(old_ut.ut_name))
62# ifdef HAVE_HOST_IN_UTMP
63# define UT_HOSTSIZE (sizeof(old_ut.ut_host))
64# endif
65#endif
66
59 tty = ttyslot(); 67 tty = ttyslot();
60 if (tty > 0 && (fd = open(_PATH_UTMP, O_RDWR|O_CREAT, 0644)) >= 0) { 68 if (tty > 0 && (fd = open(_PATH_UTMP, O_RDWR|O_CREAT, 0644)) >= 0) {
61#ifdef HAVE_HOST_IN_UTMP 69#ifdef HAVE_HOST_IN_UTMP