git: 134b047d3e93 - stable/13 - logger: fix builds without casper
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 13 Nov 2022 19:50:23 UTC
The branch stable/13 has been updated by oshogbo:
URL: https://cgit.FreeBSD.org/src/commit/?id=134b047d3e931271a2f2493af1aabadbeac0678d
commit 134b047d3e931271a2f2493af1aabadbeac0678d
Author: Mariusz Zaborski <oshogbo@FreeBSD.org>
AuthorDate: 2022-10-19 14:00:07 +0000
Commit: Mariusz Zaborski <oshogbo@FreeBSD.org>
CommitDate: 2022-11-13 19:49:43 +0000
logger: fix builds without casper
We can enter capability mode only when Casper is available in
the system.
Reported by: mjg@
(cherry picked from commit af3297898720af2f2ed18d18d45ea6bf50d55ef1)
---
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");