Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Aug 2025 11:51:55 GMT
From:      Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?= <des@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: bba73c02879d - stable/14 - comsat: Don't return from the child
Message-ID:  <202508051151.575BptSW024104@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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, 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202508051151.575BptSW024104>