diff options
author | 2016-07-18 16:46:30 +0000 | |
---|---|---|
committer | 2016-07-18 16:46:30 +0000 | |
commit | ff37429cbb768e4b590baee210183e74324d4ffd (patch) | |
tree | 0d9b5bde4b73a478180dc21fb77f45e6819143bf /usr.bin/mandoc/html.h | |
parent | g/c unused (global!) var: oqueues isn't used any more. ALTQ leftover; not (diff) | |
download | wireguard-openbsd-ff37429cbb768e4b590baee210183e74324d4ffd.tar.xz wireguard-openbsd-ff37429cbb768e4b590baee210183e74324d4ffd.zip |
The string with path to shell could be taken directly from struct passwd.
At some point later the data it points to is overridden by getpwuid() call,
resulting in garbage. The problem could be easily demonstreated by double
doas call:
$ doas doas -su _sndio
doas: mpty: command not found
The fix is easy: just strdup() the pw_shell field value.
okay tedu@, tweaks from & okay natano@
Diffstat (limited to 'usr.bin/mandoc/html.h')
0 files changed, 0 insertions, 0 deletions