comsat: Don't return from the child

Fixes:		91629228e3
MFC after:	1 week
Reviewed by:	emaste
Differential Revision:	https://reviews.freebsd.org/D51581
This commit is contained in:
Dag-Erling Smørgrav 2025-07-28 17:28:34 +02:00
parent 4a4338d944
commit e40a2c4927

View file

@ -181,7 +181,7 @@ notify(struct utmpx *utp, char file[], off_t offset, int folder)
initgroups(p->pw_name, p->pw_gid) == -1 ||
setgid(p->pw_gid) == -1 ||
setuid(p->pw_uid) == -1)
return;
_exit(1);
if (stb.st_mode & S_IXUSR) {
(void)fprintf(tp,