su(1) tries to log the tty name for successful/failed logins, but
ontty()/ttyname() will currently not return anything useful because of
unveil.
This patch adds unveil for /var/run/dev.db. ttyname(3) has also a
fallback that would need /dev/. I left it out, because I don't know if
there is any
When guenther@ switched isatty(3) to F_ISATTY, he forgot ttyname(3).
With this, simple callers of ttyname(3) like tty(1) and who(1) no
longer need pledge("tty").
Index: lib/libc/gen/ttyname.c
===
RCS file: /cvs/src/li
> When guenther@ switched isatty(3) to F_ISATTY, he forgot ttyname(3).
That was a change I made.
> With this, simple callers of ttyname(3) like tty(1) and who(1) no
> longer need pledge("tty").
That is correct, these programs could do without the ability to set
modes o