From owner-svn-src-head@freebsd.org Wed Apr 19 20:35:05 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CE4C3D4602A; Wed, 19 Apr 2017 20:35:05 +0000 (UTC) (envelope-from manu@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9E7F9279; Wed, 19 Apr 2017 20:35:05 +0000 (UTC) (envelope-from manu@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v3JKZ4sC091187; Wed, 19 Apr 2017 20:35:04 GMT (envelope-from manu@FreeBSD.org) Received: (from manu@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v3JKZ4kY091186; Wed, 19 Apr 2017 20:35:04 GMT (envelope-from manu@FreeBSD.org) Message-Id: <201704192035.v3JKZ4kY091186@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: manu set sender to manu@FreeBSD.org using -f From: Emmanuel Vadot Date: Wed, 19 Apr 2017 20:35:04 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r317166 - head/usr.bin/pom X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Apr 2017 20:35:05 -0000 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)