bugfindutils - Bugs: bug #29949, find -execdir does not change...


bug #29949: find -execdir does not change working directory

Submitted by:  Andreas Metzler <ametzler>
Submitted on:  Sun 23 May 2010 04:01:09 PM UTC  
Votes:  13  
Category:  find Severity:  6 - Security
Item Group:  Wrong result Status:  Fixed
Privacy:  Public Assigned to:  James Youngman <jay>
Originator Name:  Raja R Harinath Open/Closed:  Closed
Release:  4.5.9 Fixed Release:  4.5.10

Add a New Comment (Rich Markup)

You are not logged in

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


Sat 02 Apr 2011 09:36:08 PM UTC, comment #1: 

Kamil's patch fixes the problem.   I have applied it.

James Youngman <jay>
Project AdministratorIn charge of this item.
Sun 23 May 2010 04:01:09 PM UTC, original submission:  


this is http://bugs.debian.org/582717 reported by Raja R Harinath
Running the following fragment

d=$(mktemp -d); mkdir -p $d/{foo,bar,baz}/bug; find $d -type d -name bug -print -execdir pwd \;

at a command prompt gives me:


The expected output, which is correctly obtained with version 4.4.2-1 from testing is something like:


Note how pwd continues to stay at /tmp/.../bar.

I have confirmed the behavior, it also affects oldfind. This is a new bug, 4.5.8 behaves correctly.

cu andreas

Andreas Metzler <ametzler>


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

Attach Files:

Attached Files


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)
  • -email is unavailable- added by skroob (Voted in favor of this item)
  • -email is unavailable- added by kdudka (Updated the item)

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

    Only logged-in users can vote.




    Follow 10 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-05-11 jay Open/ClosedOpen => Closed
        Fixed ReleaseNone => 4.5.10
    2011-04-02 jay StatusNone => Fixed
    2011-04-02 jay Severity5 - Blocker => 6 - Security
    2011-04-02 jay Assigned toNone => jay
    2011-04-02 jay Severity3 - Normal => 5 - Blocker
    2010-10-07 jay Summaryfind -execdr does not change working directory => find -execdir does not change working directory
    2010-07-18 skroob Carbon-Copy- => Added skroob
    2010-05-24 kdudka Attached File- => Added 0001-Fix-Savannah-bug-29949-execdir-does-not-change-worki.patch, #20607
    2010-05-23 ametzler Carbon-CopyRemoved 20807 => -

    Back to the top

    Powered by Savane 3.6