]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Remove extraneous setutxent() calls in write(1).
authormarkj <markj@FreeBSD.org>
Wed, 23 Jan 2019 20:02:17 +0000 (20:02 +0000)
committermarkj <markj@FreeBSD.org>
Wed, 23 Jan 2019 20:02:17 +0000 (20:02 +0000)
commita3e90e8f7c552ea2001e9d166107be8abe931b97
tree31475634e0b07784f5128f8632283e51fb5e6c65
parentbbf6b587b5dd542d3f63eb40bfefce0349e02bae
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