On 10/31/2012 05:28 PM, Dmitry V. Levin wrote:
> On Tue, Sep 04, 2012 at 01:09:24PM +0200, Jim Meyering wrote:
> [...]
>> Here's the revised commit:
>>

>> Subject: [PATCH] fts: reduce two or more trailing slashes to just one,
>>  usually
>>
>> * lib/fts.c (fts_open): Upon initialization, if a name ends in two
>> or more slashes, trim all but the final one.  But if a name consists
>> solely of two slashes, don't modify it.  If it consists solely of
>> three or more slashes, strip all but one.

> JFYI, a side effect of this commit is that find(1) output changed:
> before$ find /// -prune
> ///
> after$ find /// -prune
> /

POSIX requires find to output the user's slashes unchanged, so we have
caused a regression in find, and need to update find to counteract the
change.

> 
> Found by find/testsuite/find.gnu/name-slash.exp, I'm not sure
> whether find or its test suite has to be updated.
> 
> 

-- 
Eric Blake   ebl...@redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to