Skip site navigation (1)Skip section navigation (2)
Date:      22 Sep 1997 13:55:11 +0200
From:      Wolfram Schneider <wosch@cs.tu-berlin.de>
To:        "Robert A. Bruce" <rab@cdrom.com>
Cc:        freebsd-bugs@freebsd.org, rab@wc.cdrom.com
Subject:   Re: bug in "find"
Message-ID:  <p1ibu1ltvfk.fsf@panke.panke.de>
In-Reply-To: "Robert A. Bruce"'s message of Sun, 21 Sep 1997 23:03:37 -0700
References:  <199709220603.XAA00591@wc.cdrom.com>

index | next in thread | previous in thread | raw e-mail

"Robert A. Bruce" <rab@cdrom.com> 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   <wosch@apfel.de>   http://www.apfel.de/~wosch/


help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p1ibu1ltvfk.fsf>