- (djm) Define AIX hard limits if headers don't. Report from
Bill Painter <william.t.painter@lmco.com>
This commit is contained in:
parent
ab8d1921f4
commit
d17b8d5aee
|
@ -1,3 +1,7 @@
|
|||
20000809
|
||||
- (djm) Define AIX hard limits if headers don't. Report from
|
||||
Bill Painter <william.t.painter@lmco.com>
|
||||
|
||||
20000808
|
||||
- (djm) Cleanup Redhat RPMs. Generate keys at runtime rather than install
|
||||
time, spec file cleanup.
|
||||
|
|
14
session.c
14
session.c
|
@ -41,6 +41,16 @@ RCSID("$OpenBSD: session.c,v 1.23 2000/07/11 08:11:33 deraadt Exp $");
|
|||
# include <siad.h>
|
||||
#endif
|
||||
|
||||
/* AIX limits */
|
||||
#if defined(HAVE_GETUSERATTR) && !defined(S_UFSIZE_HARD) && defined(S_UFSIZE)
|
||||
# define S_UFSIZE_HARD S_UFSIZE
|
||||
# define S_UCPU_HARD S_UCPU
|
||||
# define S_UDATA_HARD S_UDATA
|
||||
# define S_USTACK_HARD S_USTACK
|
||||
# define S_URSS_HARD S_URSS
|
||||
# define S_UCORE_HARD S_UCORE
|
||||
#endif
|
||||
|
||||
/* types */
|
||||
|
||||
#define TTYSZ 64
|
||||
|
@ -591,8 +601,8 @@ do_exec_pty(Session *s, const char *command, struct passwd * pw)
|
|||
}
|
||||
}
|
||||
/* Record that there was a login on that terminal. */
|
||||
record_login(pid, s->tty, pw->pw_name, pw->pw_uid, hostname,
|
||||
(struct sockaddr *)&from);
|
||||
record_login(pid, s->tty, pw->pw_name, pw->pw_uid, hostname,
|
||||
(struct sockaddr *)&from);
|
||||
|
||||
/* Check if .hushlogin exists. */
|
||||
snprintf(line, sizeof line, "%.200s/.hushlogin", pw->pw_dir);
|
||||
|
|
Loading…
Reference in New Issue