summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--configure.ac4
-rw-r--r--openbsd-compat/port-irix.c27
3 files changed, 12 insertions, 23 deletions
diff --git a/ChangeLog b/ChangeLog
index cfb3005d2..5cd744a4d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -13,6 +13,8 @@
13 http://bugzilla.mindrot.org/show_bug.cgi?id=76 13 http://bugzilla.mindrot.org/show_bug.cgi?id=76
14 - (bal) Slight update to OpenSC support. Better version checking. patch 14 - (bal) Slight update to OpenSC support. Better version checking. patch
15 by Juha Yrjölä <jyrjola@cc.hut.fi> 15 by Juha Yrjölä <jyrjola@cc.hut.fi>
16 - (bal) Revered out of runtime IRIX detection of joblimits. Code is
17 incomplete.
16 18
1720020405 1920020405
18 - (bal) Patch for OpenSC SmartCard library; ok markus@; patch by 20 - (bal) Patch for OpenSC SmartCard library; ok markus@; patch by
@@ -8183,4 +8185,4 @@
8183 - Wrote replacements for strlcpy and mkdtemp 8185 - Wrote replacements for strlcpy and mkdtemp
8184 - Released 1.0pre1 8186 - Released 1.0pre1
8185 8187
8186$Id: ChangeLog,v 1.2030 2002/04/06 18:29:59 mouring Exp $ 8188$Id: ChangeLog,v 1.2031 2002/04/06 18:58:31 mouring Exp $
diff --git a/configure.ac b/configure.ac
index caa747f64..2208c4a07 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,4 @@
1# $Id: configure.ac,v 1.32 2002/04/05 20:23:37 mouring Exp $ 1# $Id: configure.ac,v 1.33 2002/04/06 18:58:32 mouring Exp $
2 2
3AC_INIT 3AC_INIT
4AC_CONFIG_SRCDIR([ssh.c]) 4AC_CONFIG_SRCDIR([ssh.c])
@@ -114,7 +114,7 @@ case "$host" in
114 AC_DEFINE(WITH_IRIX_ARRAY) 114 AC_DEFINE(WITH_IRIX_ARRAY)
115 AC_DEFINE(WITH_IRIX_PROJECT) 115 AC_DEFINE(WITH_IRIX_PROJECT)
116 AC_DEFINE(WITH_IRIX_AUDIT) 116 AC_DEFINE(WITH_IRIX_AUDIT)
117 AC_DEFINE(WITH_IRIX_JOBS) 117 AC_CHECK_FUNC(jlimit_startjob, [AC_DEFINE(WITH_IRIX_JOBS)])
118 AC_DEFINE(BROKEN_INET_NTOA) 118 AC_DEFINE(BROKEN_INET_NTOA)
119 ;; 119 ;;
120*-*-linux*) 120*-*-linux*)
diff --git a/openbsd-compat/port-irix.c b/openbsd-compat/port-irix.c
index bd03366f5..a63ec429a 100644
--- a/openbsd-compat/port-irix.c
+++ b/openbsd-compat/port-irix.c
@@ -3,20 +3,13 @@
3#if defined(WITH_IRIX_PROJECT) || defined(WITH_IRIX_JOBS) || defined(WITH_IRIX_ARRAY) 3#if defined(WITH_IRIX_PROJECT) || defined(WITH_IRIX_JOBS) || defined(WITH_IRIX_ARRAY)
4 4
5#ifdef WITH_IRIX_PROJECT 5#ifdef WITH_IRIX_PROJECT
6# include <proj.h> 6#include <proj.h>
7#endif /* WITH_IRIX_PROJECT */ 7#endif /* WITH_IRIX_PROJECT */
8#ifdef WITH_IRIX_JOBS 8#ifdef WITH_IRIX_JOBS
9# include <sys/resource.h> 9#include <sys/resource.h>
10# include <optional_sym.h> 10#endif
11# if !defined(JLIMIT_CPU)
12/* Simulate job limit support so we can still test for it at runtime. */
13typedef __int64_t jid_t;
14extern jid_t jlimit_startjob(char *, uid_t, char *);
15# pragma optional jlimit_startjob
16# endif
17#endif /* WITH_IRIX_JOBS */
18#ifdef WITH_IRIX_AUDIT 11#ifdef WITH_IRIX_AUDIT
19# include <sat.h> 12#include <sat.h>
20#endif /* WITH_IRIX_AUDIT */ 13#endif /* WITH_IRIX_AUDIT */
21 14
22void 15void
@@ -34,16 +27,10 @@ irix_setusercontext(struct passwd *pw)
34#endif /* WITH_IRIX_JOBS */ 27#endif /* WITH_IRIX_JOBS */
35 28
36#ifdef WITH_IRIX_JOBS 29#ifdef WITH_IRIX_JOBS
37 if (_MIPS_SYMBOL_PRESENT(jlimit_startjob)) { 30 jid = jlimit_startjob(pw->pw_name, pw->pw_uid, "interactive");
38 jid = jlimit_startjob(pw->pw_name, pw->pw_uid, "interactive"); 31 if (jid == -1)
39 if (jid == -1) { 32 fatal("Failed to create job container: %.100s",
40 if (errno == ENOPKG)
41 jid = 0;
42 else
43 fatal("Failed to create job container: %.100s",
44 strerror(errno)); 33 strerror(errno));
45 }
46 }
47#endif /* WITH_IRIX_JOBS */ 34#endif /* WITH_IRIX_JOBS */
48#ifdef WITH_IRIX_ARRAY 35#ifdef WITH_IRIX_ARRAY
49 /* initialize array session */ 36 /* initialize array session */