From 041ec0d28422eeb3e9336569d84694cf3a04da19 Mon Sep 17 00:00:00 2001 From: Emmanuel Vadot Date: Wed, 19 Apr 2017 20:35:04 +0000 Subject: [PATCH] pom: Remove useless cap_rights_init Pointy-Hat: manu Reported by: bapt --- usr.bin/pom/pom.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/usr.bin/pom/pom.c b/usr.bin/pom/pom.c index da63997a8389..f0c214d2da32 100644 --- a/usr.bin/pom/pom.c +++ b/usr.bin/pom/pom.c @@ -86,7 +86,6 @@ static void usage(char *progname); int main(int argc, char **argv) { - cap_rights_t rights; time_t tt; struct tm GMT, tmd; double days, today, tomorrow; @@ -96,7 +95,6 @@ main(int argc, char **argv) if (caph_limit_stdio() < 0) err(1, "unable to limit capabitilities for stdio"); - cap_rights_init(&rights, CAP_WRITE); caph_cache_catpages(); if (cap_enter() < 0 && errno != ENOSYS)