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:
Brian Feldman 2000-06-27 21:16:06 +00:00
parent ed1235ad70
commit 21deafa350
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=62179
2 changed files with 6 additions and 0 deletions

View File

@ -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 ||

View File

@ -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