bugfindutils - Bugs: bug #26537, -prune acts on nondirectories due...

 
 

bug #26537: -prune acts on nondirectories due to use of uninitialiased st_mode

Submitted by:  James Youngman <jay>
Submitted on:  Tue 12 May 2009 08:46:16 AM UTC  
 
Category: findSeverity: 4 - Important
Item Group: Wrong resultStatus: Fixed
Privacy: PublicAssigned to: James Youngman <jay>
Originator Name: Colin WatsonOpen/Closed: Closed
Release: NoneFixed Release: 4.4.2

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 06 Jul 2009 10:44:26 PM UTC, comment #3:

The fix has now also been released in 4.5.5.

James Youngman <jay>
Project AdministratorIn charge of this item.
Sun 05 Jul 2009 05:43:50 PM UTC, comment #2:

Fixed in the 4.5.x branch (i.e. "master") and pushed.

James Youngman <jay>
Project AdministratorIn charge of this item.
Tue 12 May 2009 09:12:23 AM UTC, comment #1:

Fixed in the rel-4-4-fixes branch. Not yet fixed in 4.5.x.

James Youngman <jay>
Project AdministratorIn charge of this item.
Tue 12 May 2009 08:46:16 AM UTC, original submission:

Colin writes:
---
The -prune action needs stat information when -depth is not given, but find's parser fails to declare this. It is therefore possible for -prune to use undefined stat data.

I've attached a patch (against the rel-4-4-fixes branch, I'm afraid; I have spent the whole afternoon trying to track this down in the face of half our developers complaining because all their builds are breaking, so I'd rather do something else right now, but I wanted to get this patch sent; if you need it reconstructed against master then I can do that tomorrow), including a test that you may be able to get to demonstrate the problem. Whether the test actually fails for you is unfortunately not certain, since it's an undefined-data problem; you should at least be able to see the bug manually by breaking on pred_prune.
---

Corresponding Ubuntu bug: https://bugs.launchpad.net/ubuntu/+source/findutils/+bug/373214
Debian bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=527584

James Youngman <jay>
Project AdministratorIn charge of this item.

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jay (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 06 Jul 2009 10:44:26 PM UTCjayOpen/ClosedOpen=>Closed
    Sat 06 Jun 2009 02:50:31 PM UTCjayStatusIn Progress=>Fixed
      Fixed ReleaseNone=>4.4.2

    Back to the top


    Powered by Savane 3.1-cleanup1