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

 
 

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

Submitter:  James Youngman <jay>
Submitted:  Tue 12 May 2009 08:46:16 AM UTC
 
Category:  find Severity:  4 - Important
Item Group:  Wrong result Status:  Fixed
Privacy:  Public Assigned to:  jay
Originator Name:  Colin Watson Open/Closed:  Closed
Release:  None Fixed Release:  4.4.2
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       

 

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 Administrator
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 Administrator
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 Administrator
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 Administrator

 

(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 jay (Submitted 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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-07-06 jay Open/ClosedOpen Closed
    2009-06-06 jay StatusIn Progress Fixed
        Fixed ReleaseNone 4.4.2

    Back to the top


    Powered by Savane 3.9