git: e40a2c4927a8 - main - comsat: Don't return from the child
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 28 Jul 2025 15:30:16 UTC
The branch main has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=e40a2c4927a8068d7b6adee69c90ae3be8efc4df commit e40a2c4927a8068d7b6adee69c90ae3be8efc4df 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-07-28 15:28:59 +0000 comsat: Don't return from the child Fixes: 91629228e3df MFC after: 1 week Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D51581 --- 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 60d4f65519d0..cb00ee4a9392 100644 --- a/libexec/comsat/comsat.c +++ b/libexec/comsat/comsat.c @@ -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,