mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-31 01:35:11 +02:00
- (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).
This commit is contained in:
parent
3107efc12a
commit
127398c6ec
@ -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
|
20020221
|
||||||
- (bal) Minor session.c for cygwin. mispelt 'is_winnt' variable.
|
- (bal) Minor session.c fixup for cygwin. mispelt 'is_winnt' variable.
|
||||||
|
|
||||||
20020219
|
20020219
|
||||||
- (djm) OpenBSD CVS Sync
|
- (djm) OpenBSD CVS Sync
|
||||||
@ -7656,4 +7661,4 @@
|
|||||||
- Wrote replacements for strlcpy and mkdtemp
|
- Wrote replacements for strlcpy and mkdtemp
|
||||||
- Released 1.0pre1
|
- Released 1.0pre1
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.1870 2002/02/21 15:37:02 mouring Exp $
|
$Id: ChangeLog,v 1.1871 2002/02/24 20:25:46 mouring Exp $
|
||||||
|
@ -2,7 +2,12 @@
|
|||||||
|
|
||||||
#ifdef _AIX
|
#ifdef _AIX
|
||||||
|
|
||||||
|
#ifdef HAVE_USERSEC_H
|
||||||
|
#include <usersec.h>
|
||||||
|
#endif /* HAVE_USERSEC_H */
|
||||||
|
|
||||||
#include <uinfo.h>
|
#include <uinfo.h>
|
||||||
|
#include <../xmalloc.h>
|
||||||
|
|
||||||
/* AIX limits */
|
/* AIX limits */
|
||||||
#if defined(HAVE_GETUSERATTR) && !defined(S_UFSIZE_HARD) && defined(S_UFSIZE)
|
#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
|
* actually use this and die if it's not set
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
aix_usrinfo(Session *s)
|
aix_usrinfo(struct passwd *pw, char *tty, int ttyfd)
|
||||||
{
|
{
|
||||||
struct passwd *pw = s->pw;
|
|
||||||
u_int i;
|
u_int i;
|
||||||
const char *cp=NULL;
|
char *cp=NULL;
|
||||||
|
|
||||||
if (s->ttyfd == -1)
|
if (ttyfd == -1)
|
||||||
s->tty[0] = '\0';
|
tty[0] = '\0';
|
||||||
cp = xmalloc(22 + strlen(s->tty) + 2 * strlen(pw->pw_name));
|
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,
|
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)
|
if (usrinfo(SETUINFO, cp, i) == -1)
|
||||||
fatal("Couldn't set usrinfo: %s", strerror(errno));
|
fatal("Couldn't set usrinfo: %s", strerror(errno));
|
||||||
debug3("AIX/UsrInfo: set len %d", i);
|
debug3("AIX/UsrInfo: set len %d", i);
|
||||||
|
@ -5,6 +5,6 @@ void set_limit(char *user, char *soft, char *hard, int resource, int mult);
|
|||||||
void set_limits_from_userattr(char *user);
|
void set_limits_from_userattr(char *user);
|
||||||
#endif /* HAVE_GETUSERATTR */
|
#endif /* HAVE_GETUSERATTR */
|
||||||
|
|
||||||
void aix_usrinfo(Session *s);
|
void aix_usrinfo(struct passwd *pw, char *tty, int ttyfd)
|
||||||
|
|
||||||
#endif /* _AIX */
|
#endif /* _AIX */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user