bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #26537] -prune acts on nondirectories due to use of uninitialiased


From: James Youngman
Subject: [bug #26537] -prune acts on nondirectories due to use of uninitialiased st_mode
Date: Tue, 12 May 2009 08:46:18 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.7) Gecko/2009032813 Iceweasel/3.0.6 (Debian-3.0.6-1)

URL:
  <http://savannah.gnu.org/bugs/?26537>

                 Summary: -prune acts on nondirectories due to use of
uninitialiased st_mode
                 Project: findutils
            Submitted by: jay
            Submitted on: Tue 12 May 2009 08:46:16 AM GMT
                Category: find
                Severity: 4 - Important
              Item Group: Wrong result
                  Status: In Progress
                 Privacy: Public
             Assigned to: jay
         Originator Name: Colin Watson
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: None
           Fixed Release: None

    _______________________________________________________

Details:

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





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?26537>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]