https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270404

--- Comment #7 from commit-h...@freebsd.org ---
A commit in branch stable/14 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=957f7a2a58e550bd31d8ebec67f99d19087746a2

commit 957f7a2a58e550bd31d8ebec67f99d19087746a2
Author:     Ed Maste <ema...@freebsd.org>
AuthorDate: 2024-11-27 20:36:46 +0000
Commit:     Ed Maste <ema...@freebsd.org>
CommitDate: 2024-12-02 21:10:31 +0000

    comsat: Improve use of setuid()

    Just return from jkfprintf if either (a) user lookup fails (that is,
    getpwnam fails) or (b) setuid() to the user's uid fails.  If comsat is
    invoked from inetd using the default of tty:tty we will now return due
    to setuid() failing rather than fopen() failing.

    PR:             270404
    Reviewed by:    kevans
    Sponsored by:   The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D47823

    (cherry picked from commit 062b69ba045dc0fef3d9b8d73365d2798c05a480)

 libexec/comsat/comsat.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to