opnsense-src/libexec/comsat
Ed Maste 062b69ba04 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
2024-11-28 08:04:10 -05:00
..
comsat.8 libexec: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
comsat.c comsat: Improve use of setuid() 2024-11-28 08:04:10 -05:00
Makefile Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00