diff options
author | 2016-04-29 14:40:36 +0000 | |
---|---|---|
committer | 2016-04-29 14:40:36 +0000 | |
commit | 9b247b225e588d8acaa6db9fa0e74df1f3d715e5 (patch) | |
tree | d12d33a011e050325d8b664568cb6fb4b86d25ab /usr.bin/tmux/cmd-if-shell.c | |
parent | Final parts of command hooks, add before- and after- hooks to each command. (diff) | |
download | wireguard-openbsd-9b247b225e588d8acaa6db9fa0e74df1f3d715e5.tar.xz wireguard-openbsd-9b247b225e588d8acaa6db9fa0e74df1f3d715e5.zip |
Fix some gibbering horrors due to uninitialized struct nameidata's
1) turn NDINITAT into a function and make the macros point to it
with the later goal of getting rid of them.
2) Sweep the kernel for places where people make a struct nameidata manually
on the stack and fill in what they hope are the required fields and count
on prayer and clean living to always get them right. Instead use NDINIT
everywhere. NFS was especially bad for this and there have likely
been things lurking there for a while.
3) Add a couple of strategic KASSERT's to catch future offenders.
ok krw@ sthen@ deraadt@
Diffstat (limited to 'usr.bin/tmux/cmd-if-shell.c')
0 files changed, 0 insertions, 0 deletions