From owner-freebsd-bugs@FreeBSD.ORG Mon May 13 23:20:02 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 1D861730 for ; Mon, 13 May 2013 23:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id DF7D3AC for ; Mon, 13 May 2013 23:20:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r4DNK1hk078650 for ; Mon, 13 May 2013 23:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r4DNK1qY078649; Mon, 13 May 2013 23:20:01 GMT (envelope-from gnats) Resent-Date: Mon, 13 May 2013 23:20:01 GMT Resent-Message-Id: <201305132320.r4DNK1qY078649@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Ronald F.Guilmette" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 187355DA for ; Mon, 13 May 2013 23:10:22 +0000 (UTC) (envelope-from rfg@tristatelogic.com) Received: from outgoing.tristatelogic.com (segfault.tristatelogic.com [69.62.255.118]) by mx1.freebsd.org (Postfix) with ESMTP id EFCE161 for ; Mon, 13 May 2013 23:10:21 +0000 (UTC) Received: by segfault.tristatelogic.com (Postfix, from userid 1237) id C84393B2A4; Mon, 13 May 2013 16:10:12 -0700 (PDT) Message-Id: <20130513231012.C84393B2A4@segfault.tristatelogic.com> Date: Mon, 13 May 2013 16:10:12 -0700 (PDT) From: "Ronald F.Guilmette" To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: bin/178603: pkg_info -g reports file is missing when it is just unreadable Cc: rfg@tristatelogic.com X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: "Ronald F.Guilmette" List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 May 2013 23:20:02 -0000 >Number: 178603 >Category: bin >Synopsis: pkg_info -g reports file is missing when it is just unreadable >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon May 13 23:20:01 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Ronald F. Guilmette >Release: FreeBSD 9.1-RELEASE amd64 >Organization: entr0py >Environment: System: FreeBSD 9.1-RELEASE amd64 >Description: If the "pkg_info -g" command is executed by a non-root user, then in such a cases, some of teh files to be checked may have permissions set so that they are not readable by ordinary users. In such cases, "pkg_info -g" will improperly and incorrectly report each such file with a message saying "doesn't exist" rather than "not readable by you". This is misleading and incorrect. >How-To-Repeat: portinstall dbus-1.6.8 pkg_info -g dbus-1.6.8 Result will be: pkg_info: /usr/local/libexec/dbus-daemon-launch-helper doesn't exist >Fix: Left as an exercise for the reader. But seriously folks, a proper fix should be fairly trivial. I will cook up patches, if requested. >Release-Note: >Audit-Trail: >Unformatted: