From owner-freebsd-bugs@FreeBSD.ORG Sat Jan 3 20:12:19 2009 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 930231065697 for ; Sat, 3 Jan 2009 20:12:19 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by mx1.freebsd.org (Postfix) with ESMTP id 1840A8FC2D for ; Sat, 3 Jan 2009 20:12:17 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: by ug-out-1314.google.com with SMTP id 30so1187043ugs.39 for ; Sat, 03 Jan 2009 12:12:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=igvFWWdEEugLmyCRMkr9/nvwJ8GLBvfGVuyjxDd0BpE=; b=QuAMmtlnEwXmwYdO4b1dRYYQKoF0QBBs5RTTD8ABy+2xkUpPZefseRGOrdnDoScoHA SCy8SRFAGZn/fA8RX7XxO/quQcpl0oSz2UoyOWyf47cz80jo0T1m64eJE1tSNiB5PQ/z QvwRmsa9LIym5wIYBdIlXClJs6XtyqoP3LJ+g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=S3nvAK64DTBArAIBQHtUUPNpa5qQYNB1B7CheUZvobPPVNBCo9MRsXCRQfYrd88WQ8 u1FJ6RE+Hxa2bS4fIkypObhsxTYKL2IWhgzg9wUkZ25Ib+CuKyPFnb2nQ8zmtcK+Uk5g tiQudUJax0MRMywvcsaTHpb2TvrrcQSH/hYUA= Received: by 10.67.100.10 with SMTP id c10mr12037217ugm.2.1231013536823; Sat, 03 Jan 2009 12:12:16 -0800 (PST) Received: by 10.67.88.9 with HTTP; Sat, 3 Jan 2009 12:12:16 -0800 (PST) Message-ID: <7d6fde3d0901031212o6059edccwfd72535de5b0c3f1@mail.gmail.com> Date: Sat, 3 Jan 2009 12:12:16 -0800 From: "Garrett Cooper" To: Volker In-Reply-To: <495FAFDD.2050206@vwsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200812311256.mBVCuLT9096976@freefall.freebsd.org> <200901030135.11461.hselasky@c2i.net> <495FAFDD.2050206@vwsoft.com> Cc: Bruce Cran , freebsd-bugs@freebsd.org, freebsd-usb@freebsd.org, Hans Petter Selasky Subject: Re: bin/129963: [newusb] usbconfig(8) fails with misleading error when run as a normal user X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Jan 2009 20:12:20 -0000 On Sat, Jan 3, 2009 at 10:35 AM, Volker wrote: > On 01/03/09 01:35, Hans Petter Selasky wrote: >> On Wednesday 31 December 2008, vwe@freebsd.org wrote: >>> Synopsis: [newusb] usbconfig(8) fails with misleading error when run as a >>> normal user >>> >>> Responsible-Changed-From-To: freebsd-bugs->freebsd-usb >>> Responsible-Changed-By: vwe >>> Responsible-Changed-When: Wed Dec 31 12:55:52 UTC 2008 >>> Responsible-Changed-Why: >>> reassign >>> >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=129963 >> >> Hi, >> >> "usbconfig" will only show USB devices which the user has access to. >> >> What should be the correct display message when no devices are accessible due >> to innsufficient permissions? >> >> --HPS >> > > Hans, > > what about "access denied" or "insufficient privileges"? > > Someone might have a better idea but everything should be better than > silently refusing to do anything. > > Volker Why not just simplify the problem by printing out the strerror(3) message for the actual issue -- or was that the misleading error message? Cheers, -Garrett