mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-28 16:24:39 +02:00
unfuck
This commit is contained in:
parent
5b5ca19ef0
commit
3867bf3e7a
@ -52,8 +52,8 @@ 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, "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', len);
|
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));
|
||||||
debug3("AIX/UsrInfo: set len %d", i);
|
debug3("AIX/UsrInfo: set len %d", i);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user