From owner-freebsd-audit Thu Jan 10 2:32:56 2002 Delivered-To: freebsd-audit@freebsd.org Received: from mta7.pltn13.pbi.net (mta7.pltn13.pbi.net [64.164.98.8]) by hub.freebsd.org (Postfix) with ESMTP id 2C56A37B41B; Thu, 10 Jan 2002 02:32:54 -0800 (PST) Received: from blackbox.pacbell.net ([64.166.86.36]) by mta7.pltn13.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0GPP0084NXAT1K@mta7.pltn13.pbi.net>; Thu, 10 Jan 2002 02:32:53 -0800 (PST) Received: (from mikem@localhost) by blackbox.pacbell.net (8.11.6/8.11.6) id g0AAXPd03715; Thu, 10 Jan 2002 02:33:25 -0800 (PST envelope-from mikem) Date: Thu, 10 Jan 2002 02:33:25 -0800 From: Mike Makonnen Subject: Re: bin/33187: ls -dF and trailing slashes In-reply-to: <20020110145750.U10820-100000@gamplex.bde.org> To: Bruce Evans Cc: ru@freebsd.org, sheldonh@starjuice.net, audit@freebsd.org, bug-followup@freebsd.org Message-id: <200201101033.g0AAXPd03715@blackbox.pacbell.net> MIME-version: 1.0 X-Mailer: Sylpheed version 0.6.5 (GTK+ 1.2.10; i386--freebsd5.0) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT References: <20020109161906.N41379@sunbay.com> <20020110145750.U10820-100000@gamplex.bde.org> Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, 10 Jan 2002 15:04:31 +1100 (EST) Bruce Evans wrote: > It also breaks ls of symlinks. E.g.: > > $ ls -lF /var/crash /var/crash/ > lrwxr-xr-x 1 root wheel 8 Mar 5 2001 /var/crash@ -> /c/crash > > /var/crash/: > total 145202 > -rw-r--r-- 1 4294967294 wheel 2 Jan 9 14:44 bounds > -rw-r--r-- 1 4294967294 wheel 2630180 Jan 9 14:45 kernel.4 > -rw-r--r-- 1 root wheel 5 May 19 1994 minfree > -rw------- 1 4294967294 wheel 14680064 Nov 24 21:06 vmcore.1 > -rw------- 1 4294967294 wheel 1048576 Nov 24 21:09 vmcore.2 > -rw------- 1 4294967294 wheel 7053312 Jan 7 14:16 vmcore.3 > -rw------- 1 4294967294 wheel 268435456 Jan 9 14:45 vmcore.4 I realize the pr has been suspended, but just to set the record straight... this is not caused by the patch. The patch only comes into effect when both -d and -F are specified. > I think the slash should be stripped in the output at most. Yeah, you're right. I also just found out ls(1) will accept ``ls /usr////////''. So, should all trailing '/' be stripped on output or is it not worth the effort/POSIX compliance/whatever ? Cheers, mike makonnen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message