From owner-freebsd-bugs Mon Sep 22 06:02:08 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id GAA10850 for bugs-outgoing; Mon, 22 Sep 1997 06:02:08 -0700 (PDT) Received: from mail.cs.tu-berlin.de (root@mail.cs.tu-berlin.de [130.149.17.13]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id GAA10842 for ; Mon, 22 Sep 1997 06:01:56 -0700 (PDT) Received: from panke.panke.de (anonymous213.ppp.cs.tu-berlin.de [130.149.17.213]) by mail.cs.tu-berlin.de (8.8.6/8.8.6) with ESMTP id OAA09471; Mon, 22 Sep 1997 14:50:50 +0200 (MET DST) Received: (from wosch@localhost) by panke.panke.de (8.8.5/8.6.12) id NAA00531; Mon, 22 Sep 1997 13:55:14 +0200 (MET DST) To: "Robert A. Bruce" Cc: freebsd-bugs@freebsd.org, rab@wc.cdrom.com Subject: Re: bug in "find" References: <199709220603.XAA00591@wc.cdrom.com> From: Wolfram Schneider Date: 22 Sep 1997 13:55:11 +0200 In-Reply-To: "Robert A. Bruce"'s message of Sun, 21 Sep 1997 23:03:37 -0700 Message-ID: Lines: 35 Sender: owner-freebsd-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk "Robert A. Bruce" writes: > "find" does not properly handle directory names ending in /. This is a problem of the fts(3) library. All programs which use fts functions (du, ls, find, chmod, rm, cp) are affected. Wolfram > If I type > > find /tmp/ -print > > I get > > /tmp//foo > /tmp//bar > /tmp//baz > > instead of > > /tmp/foo > /tmp/bar > /tmp/baz > > The find command is not properly handling the trailing slash. > It should strip it off or ignore it, but it does not. > > Linux, SunOS and Solaris all do it right. FreeBSD does it wrong. > > -bob > > -- Wolfram Schneider http://www.apfel.de/~wosch/