Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Apr 2017 20:35:04 +0000 (UTC)
From:      Emmanuel Vadot <manu@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r317166 - head/usr.bin/pom
Message-ID:  <201704192035.v3JKZ4kY091186@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: manu
Date: Wed Apr 19 20:35:04 2017
New Revision: 317166
URL: https://svnweb.freebsd.org/changeset/base/317166

Log:
  pom: Remove useless cap_rights_init
  
  Pointy-Hat:	manu
  
  Reported by:	bapt

Modified:
  head/usr.bin/pom/pom.c

Modified: head/usr.bin/pom/pom.c
==============================================================================
--- head/usr.bin/pom/pom.c	Wed Apr 19 20:27:48 2017	(r317165)
+++ head/usr.bin/pom/pom.c	Wed Apr 19 20:35:04 2017	(r317166)
@@ -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)



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