CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2019/05/16 00:23:15
Modified files:
usr.bin/wall : ttymsg.c
Log message:
unveil "w" on ttys was too strict, introducing a failure condition
that non-root walls would not stat() tty permissions. Pointed out
by Anton Borowka. The stat is intentional to check for biff-compatible
g+w bit, Correct stat+open TOCTOU into open+fstat, which means the
unveil is correct. (once again, application of unveil has exposed
a minor TOCTOU).
ok guenther martijn