summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-08-09 14:42:28 +1000
committerDamien Miller <djm@mindrot.org>2000-08-09 14:42:28 +1000
commitd17b8d5aee2dfac46514b67b709ebca03b6fec25 (patch)
tree3a6900ed801aabf7c624e75090da580beb92dedf
parentab8d1921f4598baa9b8596d7f8b6bbded9acfb33 (diff)
- (djm) Define AIX hard limits if headers don't. Report from
Bill Painter <william.t.painter@lmco.com>
-rw-r--r--ChangeLog4
-rw-r--r--session.c14
2 files changed, 16 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 237a1d903..76de985e6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
120000809
2 - (djm) Define AIX hard limits if headers don't. Report from
3 Bill Painter <william.t.painter@lmco.com>
4
120000808 520000808
2 - (djm) Cleanup Redhat RPMs. Generate keys at runtime rather than install 6 - (djm) Cleanup Redhat RPMs. Generate keys at runtime rather than install
3 time, spec file cleanup. 7 time, spec file cleanup.
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);