From owner-freebsd-bugs@FreeBSD.ORG Thu Jan 4 09:55:30 2007 Return-Path: X-Original-To: freebsd-bugs@freebsd.org Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B795916A403 for ; Thu, 4 Jan 2007 09:55:30 +0000 (UTC) (envelope-from goabranco@hotmail.com) Received: from BAY0-OMC3-S10.bay0.hotmail.com (bay0-omc3-s10.bay0.hotmail.com [65.54.246.210]) by mx1.freebsd.org (Postfix) with ESMTP id A466213C47E for ; Thu, 4 Jan 2007 09:55:30 +0000 (UTC) (envelope-from goabranco@hotmail.com) Received: from hotmail.com ([65.54.162.15]) by BAY0-OMC3-S10.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 4 Jan 2007 01:43:26 -0800 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 4 Jan 2007 01:43:26 -0800 Message-ID: Received: from 65.54.162.200 by by108fd.bay108.hotmail.msn.com with HTTP; Thu, 04 Jan 2007 09:43:23 GMT X-Originating-IP: [200.44.87.39] X-Originating-Email: [goabranco@hotmail.com] X-Sender: goabranco@hotmail.com From: "Ricardo Branco" To: freebsd-bugs@freebsd.org Date: Thu, 04 Jan 2007 09:43:23 +0000 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed X-OriginalArrivalTime: 04 Jan 2007 09:43:26.0552 (UTC) FILETIME=[C8752D80:01C72FE4] Subject: /bin/ls bug? 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: Thu, 04 Jan 2007 09:55:30 -0000 Hi! Why is it that /bin/ls has the following behavior? $ mkdir /tmp/a $ chmod 000 /tmp/a $ ls /tmp/a/ ls: : Permission denied $ ls /tmp/a ls: a: Permission denied I think the most sensible way is to use basename() and use the last component for the error message rather than just printing whatever exists after the last slash... I'm seeing this problem in both FreeBSD 6.2-PRERELEASE & FreeBSD 5.4-RELEASE. Salutes, R. _________________________________________________________________ Horóscopo, tarot, numerología... Escucha lo que te dicen los astros. http://astrocentro.msn.es/