]> andersk Git - openssh.git/commitdiff
- (bal) Drop Session *s usage in ports-aix.[ch] and pass just what we
authormouring <mouring>
Sun, 24 Feb 2002 20:25:46 +0000 (20:25 +0000)
committermouring <mouring>
Sun, 24 Feb 2002 20:25:46 +0000 (20:25 +0000)
   need to do the jobs (AIX still does not fully compile, but that is
   coming).

ChangeLog
openbsd-compat/port-aix.c
openbsd-compat/port-aix.h

index 53a28cc8044884c4fa09a68b3f5b7c5f15536202..611a7668a85da264ad3e6523b85c324aa392eaf5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
+20020224
+ - (bal) Drop Session *s usage in ports-aix.[ch] and pass just what we
+   need to do the jobs (AIX still does not fully compile, but that is
+   coming).
+
 20020221
- - (bal) Minor session.c for cygwin.  mispelt 'is_winnt' variable.
+ - (bal) Minor session.c fixup for cygwin.  mispelt 'is_winnt' variable.
 
 20020219
  - (djm) OpenBSD CVS Sync
index 245c8a5095e8aacf05fdc56e5c2e83bf5ae30e8b..31697d7de39f0ff2d55b2c3d35bd93ab4f8342ee 100644 (file)
@@ -2,7 +2,12 @@
 
 #ifdef _AIX
 
+#ifdef HAVE_USERSEC_H
+#include <usersec.h>
+#endif /* HAVE_USERSEC_H */
+
 #include <uinfo.h>
+#include <../xmalloc.h>
 
 /* AIX limits */
 #if defined(HAVE_GETUSERATTR) && !defined(S_UFSIZE_HARD) && defined(S_UFSIZE)
@@ -101,17 +106,16 @@ set_limits_from_userattr(char *user)
  * actually use this and die if it's not set
  */
 void
-aix_usrinfo(Session *s
+aix_usrinfo(struct passwd *pw, char *tty, int ttyfd
 {
-       struct passwd *pw = s->pw;
        u_int i;
-       const char *cp=NULL;
+       char *cp=NULL;
 
-       if (s->ttyfd == -1)
-               s->tty[0] = '\0';
-       cp = xmalloc(22 + strlen(s->tty) + 2 * strlen(pw->pw_name));
+       if (ttyfd == -1)
+               tty[0] = '\0';
+       cp = xmalloc(22 + strlen(tty) + 2 * strlen(pw->pw_name));
        i = sprintf(cp, "LOGNAME=%s%cNAME=%s%cTTY=%s%c%c", pw->pw_name, 0, 
-           pw->pw_name, 0, s->tty, 0, 0);
+           pw->pw_name, 0, tty, 0, 0);
        if (usrinfo(SETUINFO, cp, i) == -1)
                fatal("Couldn't set usrinfo: %s", strerror(errno));
        debug3("AIX/UsrInfo: set len %d", i);
index 891b27add567ea4ee77b165f1b8b4dba37daa1e2..b5647e7ab0da8957706579b5b08632699ee9fbc6 100644 (file)
@@ -5,6 +5,6 @@ void set_limit(char *user, char *soft, char *hard, int resource, int mult);
 void set_limits_from_userattr(char *user);
 #endif /* HAVE_GETUSERATTR */
 
-void aix_usrinfo(Session *s);
+void aix_usrinfo(struct passwd *pw, char *tty, int ttyfd)
 
 #endif /* _AIX */
This page took 0.302742 seconds and 5 git commands to generate.