So /this/ is what has made OpenSSH's SSHv2 support never work right!
In some cases, limits did not get set to the proper class, but instead always to "default", because not all passwd copies were done to completion.
This commit is contained in:
parent
ed1235ad70
commit
21deafa350
@ -359,6 +359,9 @@ auth_set_user(char *u, char *s)
|
||||
copy->pw_gid = pw->pw_gid;
|
||||
copy->pw_dir = xstrdup(pw->pw_dir);
|
||||
copy->pw_shell = xstrdup(pw->pw_shell);
|
||||
copy->pw_class = xstrdup(pw->pw_class);
|
||||
copy->pw_expire = pw->pw_expire;
|
||||
copy->pw_change = pw->pw_change;
|
||||
authctxt->valid = 1;
|
||||
} else {
|
||||
if (strcmp(u, authctxt->user) != 0 ||
|
||||
|
@ -489,6 +489,9 @@ main(int ac, char **av)
|
||||
pwcopy.pw_gid = pw->pw_gid;
|
||||
pwcopy.pw_dir = xstrdup(pw->pw_dir);
|
||||
pwcopy.pw_shell = xstrdup(pw->pw_shell);
|
||||
pwcopy.pw_class = xstrdup(pw->pw_class);
|
||||
pwcopy.pw_expire = pw->pw_expire;
|
||||
pwcopy.pw_change = pw->pw_change;
|
||||
pw = &pwcopy;
|
||||
|
||||
/* Initialize "log" output. Since we are the client all output
|
||||
|
Loading…
x
Reference in New Issue
Block a user