Remove extraneous setutxent() calls in write(1).
authorMark Johnston <markj@FreeBSD.org>
Wed, 23 Jan 2019 20:02:17 +0000 (20:02 +0000)
committerMark Johnston <markj@FreeBSD.org>
Wed, 23 Jan 2019 20:02:17 +0000 (20:02 +0000)
commit27ed53c3117c6d937c9f55e94a2354345a42a604
tree31475634e0b07784f5128f8632283e51fb5e6c65
parent862203935e6d4da6065778136de19f276e9abb03
Remove extraneous setutxent() calls in write(1).

We already call setutxent() once during initialization.  Furthermore,
the subsequent calls occur after the process has entered capability
mode, so they fail, and attempts to fetch database entries fail as
a result.

PR: 235096
Submitted by: fullermd@over-yonder.net
MFC after: 3 days
usr.bin/write/write.c