bugfindutils - Bugs: bug #15531, -prune misbehaving?


bug #15531: -prune misbehaving?

Submitter:  Sylvain BERTRAND <sylware>
Submitted:  Wed 25 Jan 2006 11:18:07 PM UTC
Category:  find Severity:  3 - Normal
Item Group:  Wrong result Status:  Fixed
Privacy:  Public Assigned to:  jay
Originator Name:  Open/Closed:  Closed
Release:  4.3.0 Fixed Release:  4.3.2
* Mandatory Fields

Add a New Comment Rich Markup

Wed 08 Nov 2006 07:29:02 AM UTC, comment #5: 

This problem is fixed in the CVS code for findutils.
To resolve your problem, you could either wait for the
next official release of findutils, or check out a copy
of the code from the CVS repository for findutils.

James Youngman <jay>
Group administrator
Sun 24 Sep 2006 04:12:23 PM UTC, comment #4: 


  I have also hit this bug, with the 4.3.0 version of findutils.
My system is linux gentoo.
The provided patch did indeed solve the problem (thanks by the way).
I spent 6 our tracking the problem down:( (hehe 2 hours spent learning find syntax:).


Mon 27 Feb 2006 11:58:27 PM UTC, comment #3: 

How to reproduce:
1 - Create a test directory tree:


2 - Use the following find command on test directory:
    find test -name 1file -prune -o -name foo -print

3 - Wrong results:
    no output

4 - Results should be:

See my patch #3319 for more info. I don't think it's a RightWay(tm) fix.

Sylvain BERTRAND <sylware>
Fri 24 Feb 2006 08:13:48 PM UTC, comment #2: 

Can you find a simpler test case?   Please take the time to provide a straightforward way to reproduce your problem.  After all for a start the GNOME CVS statue of evolution-data-server is constantly changing.

If this really is a bug it needs to go into the test suite.

James Youngman <jay>
Group administrator
Fri 27 Jan 2006 12:55:02 AM UTC, comment #1: 

-prune action should only toggle the stop_at_current_level flag to true only for directories.
Here a patch for find/pred.c

Sylvain BERTRAND <sylware>
Wed 25 Jan 2006 11:18:07 PM UTC, original submission:  

How to reproduce:
1 - Download from gnome cvs evolution-data-server module.

2 - In evolution-data-server directory, run with find 4.3.1-CVS (20050126) the following command: find . -iname '.??*' -prune -o -name configure.ac -print -o -name configure.in -print

3 - Results are wrong:

4 - Results should be:

Sylvain BERTRAND <sylware>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #2137:  pred.patch added by sylware (562B - text/x-patch - find/pred.c patch resctriction -prune to directories)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by jay (Updated the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.


    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2006-11-30 jay Open/ClosedOpen Closed
        Fixed ReleaseNone 4.3.2
    2006-11-27 jay ReleaseNone 4.3.0
    2006-11-08 jay StatusNone Fixed
    2006-02-24 jay Assigned toNone jay
    2006-01-27 sylware Attached File- Added pred.patch, #3319

    Back to the top

    Powered by Savane 3.13-ee12.
    Corresponding source code