mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-31 01:35:11 +02:00
- (dtucker) [openbsd-compat/port-aix.c] Whitespace cleanups while there.
This commit is contained in:
parent
782727ac61
commit
6b2fe31def
@ -3,6 +3,7 @@
|
|||||||
argument to passwdexpired to be initialized to NULL. Suggested by tim@
|
argument to passwdexpired to be initialized to NULL. Suggested by tim@
|
||||||
While at it, initialize the other arguments to auth functions in case they
|
While at it, initialize the other arguments to auth functions in case they
|
||||||
ever acquire this behaviour.
|
ever acquire this behaviour.
|
||||||
|
- (dtucker) [openbsd-compat/port-aix.c] Whitespace cleanups while there.
|
||||||
|
|
||||||
20050528
|
20050528
|
||||||
- (dtucker) [configure.ac] For AC_CHECK_HEADERS() and AC_CHECK_FUNCS() have
|
- (dtucker) [configure.ac] For AC_CHECK_HEADERS() and AC_CHECK_FUNCS() have
|
||||||
@ -2634,4 +2635,4 @@
|
|||||||
- (djm) Trim deprecated options from INSTALL. Mention UsePAM
|
- (djm) Trim deprecated options from INSTALL. Mention UsePAM
|
||||||
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
|
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.3798 2005/05/29 00:28:48 dtucker Exp $
|
$Id: ChangeLog,v 1.3799 2005/05/29 00:32:47 dtucker Exp $
|
||||||
|
@ -42,14 +42,12 @@ static char old_registry[REGISTRY_SIZE] = "";
|
|||||||
# endif
|
# endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* AIX has a "usrinfo" area where logname and other stuff is stored -
|
* AIX has a "usrinfo" area where logname and other stuff is stored -
|
||||||
* a few applications actually use this and die if it's not set
|
* a few applications actually use this and die if it's not set
|
||||||
*
|
*
|
||||||
* NOTE: TTY= should be set, but since no one uses it and it's hard to
|
* NOTE: TTY= should be set, but since no one uses it and it's hard to
|
||||||
* acquire due to privsep code. We will just drop support.
|
* acquire due to privsep code. We will just drop support.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
aix_usrinfo(struct passwd *pw)
|
aix_usrinfo(struct passwd *pw)
|
||||||
{
|
{
|
||||||
@ -60,7 +58,7 @@ aix_usrinfo(struct passwd *pw)
|
|||||||
len = sizeof("LOGNAME= NAME= ") + (2 * strlen(pw->pw_name));
|
len = sizeof("LOGNAME= NAME= ") + (2 * strlen(pw->pw_name));
|
||||||
cp = xmalloc(len);
|
cp = xmalloc(len);
|
||||||
|
|
||||||
i = snprintf(cp, len, "LOGNAME=%s%cNAME=%s%c", pw->pw_name, '\0',
|
i = snprintf(cp, len, "LOGNAME=%s%cNAME=%s%c", pw->pw_name, '\0',
|
||||||
pw->pw_name, '\0');
|
pw->pw_name, '\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));
|
||||||
@ -170,7 +168,7 @@ sys_auth_passwd(Authctxt *ctxt, const char *password)
|
|||||||
if (result == 0) {
|
if (result == 0) {
|
||||||
authsuccess = 1;
|
authsuccess = 1;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Record successful login. We don't have a pty yet, so just
|
* Record successful login. We don't have a pty yet, so just
|
||||||
* label the line as "ssh"
|
* label the line as "ssh"
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user