Bug 14048 - Option -depth is broken in GNU find 4.1
Option -depth is broken in GNU find 4.1
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: findutils (Show other bugs)
6.2
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Preston Brown
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2000-07-15 15:53 EDT by David A. Madore
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-07-15 15:54:59 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Trivial patch that solves the bug (683 bytes, patch)
2000-07-15 15:54 EDT, David A. Madore
no flags Details | Diff

  None (edit)
Description David A. Madore 2000-07-15 15:53:08 EDT
The -depth option is completely broken in GNU find 4.1

Here is a minimal example that will illustrate the bug: run

mkdir /tmp/foo ;
echo Blah > /tmp/foo/bar ;
find /tmp/foo -depth -empty

and the program will respond

find: /tmp/foo: Not a directory

this is evidently bogus.

I have submitted a bug-report to the FSF about this, but since the latest
version of findutils dates from 1994, it is rather dubious that anyone will
ever look into it.

I have written a (trivial) patch of my own that will correct the problem:
it is available at

ftp://quatramaran.ens.fr/pub/madore/misc/findutils-depthbug/findutils-4.1-depthbug.patch

furthermore, there is a source and (Intel) binary RPM that includes this fix:

ftp://quatramaran.ens.fr/pub/madore/misc/findutils-depthbug/findutils-4.1-34.1.src.rpm
ftp://quatramaran.ens.fr/pub/madore/misc/findutils-depthbug/findutils-4.1-34.1.i386.rpm
Comment 1 David A. Madore 2000-07-15 15:54:58 EDT
Created attachment 1167 [details]
Trivial patch that solves the bug
Comment 2 Preston Brown 2000-08-30 15:57:35 EDT
fixed for 7.0.

Note You need to log in before you can comment on or make changes to this bug.