bugfindutils - Bugs: bug #18787, find -prune not pruning soon...

 
 

bug #18787: find -prune not pruning soon enough?

Submitter:  None
Submitted:  Mon 15 Jan 2007 06:44:00 PM UTC
   
 
Category:  find Severity:  3 - Normal
Item Group:  Wrong result Status:  Works For Me
Privacy:  Public Assigned to:  ericb
Originator Name:  Bill Svirsky Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  4.3.2
Fixed Release:  4.3.5
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 27 May 2007 02:52:57 AM UTC, comment #5: 

This was the result of a cygwin-local patch in 4.3.2 trying (incorrectly) to work around the brokenness of -execdir; with the cygwin 4.3.5 precompiled version, the -execdir issue was fixed upstream, so the cygwin-local patch is no longer present, and I no longer see the issue.  I'm marking this closed.

Eric Blake <ericb>
Group administrator
Sat 26 May 2007 12:50:19 PM UTC, comment #4: 

ping

James Youngman <jay>
Group administrator
Sun 15 Apr 2007 07:50:47 PM UTC, comment #3: 

Eric, can you reproduce this problem at all?

James Youngman <jay>
Group administrator
Wed 28 Feb 2007 03:24:55 PM UTC, comment #2: 

This is what I see when I run essentially the same command string:

$ for exe in /bin/find ; do /bin/rm -fr blah; mkdir -p blah/foo ; $exe blah -name foo -print -exec /bin/rm -rf {} \; -prune ; $exe --version ; /bin/rm -rf blah ; done
blah/foo
/bin/find: could not change to directory blah/foo: No such file or directory
GNU find version 4.3.2
Features enabled: O_NOFOLLOW(enabled) LEAF_OPTIMISATION FTS CBO(level=0)

I don't know what the D_TYPE feature does. I didn't build any of this from source. I'm just using what I downloaded from cygwin.com.

Thanks.

Bill Svirsky <wmsky33>
Sat 24 Feb 2007 07:03:50 PM UTC, comment #1: 

I can't reproduce this:-

$ for exe in ./find-4.3.0 ./find-4.3.2 ; do rm -fr blah; mkdir -p blah/foo ; $exe blah -name foo -print -exec rm -rf {} \; -prune ; $exe --version ; rm -rf blah ; done
blah/foo
GNU find version 4.3.0
Features enabled: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION FTS
blah/foo
GNU find version 4.3.2
Features enabled: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION FTS CBO(level=0)

James Youngman <jay>
Group administrator
Mon 15 Jan 2007 06:44:00 PM UTC, original submission:  

Create a directory hierarchy like blah/foo

Execute the following find command using find version 4.3.0 and 4.3.2

find blah -name foo -print -exec rm -rf {} \; -prune

Version 4.3.0 results:
blah/foo

Version 4.3.2 results:
blah/foo
find: could not change to directory blah/foo: No such file or directory

In both cases foo was removed correctly.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by ericb (Posted a comment)
  • -email is unavailable- added by wmsky33 (Posted a comment)
  • -email is unavailable- added by jay (Posted a comment)
  •  

    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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-05-27 ericb Open/ClosedOpen Closed
        Fixed ReleaseNone 4.3.5
    2007-04-15 jay Assigned tojay ericb
    2007-02-24 jay StatusNone Works For Me
        Assigned toNone jay

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code