git: bba73c02879d - stable/14 - comsat: Don't return from the child
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 05 Aug 2025 11:51:55 UTC
The branch stable/14 has been updated by des:
URL: https://cgit.FreeBSD.org/src/commit/?id=bba73c02879d11933ae29e8ef1a8b065cec2918e
commit bba73c02879d11933ae29e8ef1a8b065cec2918e
Author: Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2025-07-28 15:28:34 +0000
Commit: Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2025-08-05 09:30:03 +0000
comsat: Don't return from the child
Fixes: 91629228e3df
MFC after: 1 week
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D51581
(cherry picked from commit e40a2c4927a8068d7b6adee69c90ae3be8efc4df)
---
libexec/comsat/comsat.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libexec/comsat/comsat.c b/libexec/comsat/comsat.c
index 294e725b4e37..f40123a5ef09 100644
--- a/libexec/comsat/comsat.c
+++ b/libexec/comsat/comsat.c
@@ -193,7 +193,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,