summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'session.c')
-rw-r--r--session.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/session.c b/session.c
index 3e889dbf1..388d96bb2 100644
--- a/session.c
+++ b/session.c
@@ -41,6 +41,16 @@ RCSID("$OpenBSD: session.c,v 1.23 2000/07/11 08:11:33 deraadt Exp $");
41# include <siad.h> 41# include <siad.h>
42#endif 42#endif
43 43
44/* AIX limits */
45#if defined(HAVE_GETUSERATTR) && !defined(S_UFSIZE_HARD) && defined(S_UFSIZE)
46# define S_UFSIZE_HARD S_UFSIZE
47# define S_UCPU_HARD S_UCPU
48# define S_UDATA_HARD S_UDATA
49# define S_USTACK_HARD S_USTACK
50# define S_URSS_HARD S_URSS
51# define S_UCORE_HARD S_UCORE
52#endif
53
44/* types */ 54/* types */
45 55
46#define TTYSZ 64 56#define TTYSZ 64
@@ -591,8 +601,8 @@ do_exec_pty(Session *s, const char *command, struct passwd * pw)
591 } 601 }
592 } 602 }
593 /* Record that there was a login on that terminal. */ 603 /* Record that there was a login on that terminal. */
594 record_login(pid, s->tty, pw->pw_name, pw->pw_uid, hostname, 604 record_login(pid, s->tty, pw->pw_name, pw->pw_uid, hostname,
595 (struct sockaddr *)&from); 605 (struct sockaddr *)&from);
596 606
597 /* Check if .hushlogin exists. */ 607 /* Check if .hushlogin exists. */
598 snprintf(line, sizeof line, "%.200s/.hushlogin", pw->pw_dir); 608 snprintf(line, sizeof line, "%.200s/.hushlogin", pw->pw_dir);