git: af3297898720 - main - logger: fix builds without casper
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 19 Oct 2022 14:02:47 UTC
The branch main has been updated by oshogbo: URL: https://cgit.FreeBSD.org/src/commit/?id=af3297898720af2f2ed18d18d45ea6bf50d55ef1 commit af3297898720af2f2ed18d18d45ea6bf50d55ef1 Author: Mariusz Zaborski <oshogbo@FreeBSD.org> AuthorDate: 2022-10-19 14:00:07 +0000 Commit: Mariusz Zaborski <oshogbo@FreeBSD.org> CommitDate: 2022-10-19 14:02:30 +0000 logger: fix builds without casper We can enter capability mode only when Casper is available in the system. Reported by: mjg@ MFC after: 1 week --- usr.bin/logger/logger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/logger/logger.c b/usr.bin/logger/logger.c index 44aa8ed3bae1..1ce8d81db6f6 100644 --- a/usr.bin/logger/logger.c +++ b/usr.bin/logger/logger.c @@ -182,7 +182,7 @@ main(int argc, char *argv[]) caph_cache_catpages(); caph_cache_tzdata(); if (nsock == 0) { - if (caph_enter() < 0) + if (caph_enter_casper() < 0) err(1, "Unable to enter capability mode"); } capsyslog = cap_service_open(capcas, "system.syslog");