summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authormestre <mestre@openbsd.org>2016-05-03 21:05:14 +0000
committermestre <mestre@openbsd.org>2016-05-03 21:05:14 +0000
commit716c272b16e98a852f63d814e666ff1349874d08 (patch)
tree0c6de3cfdfb869b5a642b785fa1d906c874c1138 /lib/libc
parentFix some Perl statements perlcritic was bitching about: Variable (diff)
downloadwireguard-openbsd-716c272b16e98a852f63d814e666ff1349874d08.tar.xz
wireguard-openbsd-716c272b16e98a852f63d814e666ff1349874d08.zip
Fix regression on usermod/userdel by calling getpwnam_shadow(3) and saving
passwd hash early, instead of getpwnam(3), then close fds by calling endpwent(3) and finally only call pledge(2) after it, otherwise on any modification to the user it would destroy the passwd hash and therefore forbidding him/her to login again to the machine. Reported and tested by Edgar Pettijohn <edgar ! pettijohn-web at com> According to deraadt@ "that looks better then"
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions