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 May 23 16:01:09 2010  
Votes:  13  
Category: findSeverity: 6 - Security
Item Group: Wrong resultStatus: Fixed
Privacy: PublicAssigned to: James Youngman <jay>
Originator Name: Raja R HarinathOpen/Closed: Closed
Release: 4.5.9Fixed Release: 4.5.10

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

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


Sat Apr 2 21:36:08 2011, comment #1:

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

James Youngman <jay>
Project AdministratorIn charge of this item.
Sun May 23 16:01:09 2010, 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 File(s):

Attached Files


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by jay (Updated the item)
  • -unavailable- added by skroob (Voted in favor of this item)
  • -unavailable- added by kdudka (Updated 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 13 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 10 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed May 11 09:41:32 2011jayOpen/ClosedOpen=>Closed
      Fixed ReleaseNone=>4.5.10
    Sat Apr 2 21:37:14 2011jayStatusNone=>Fixed
    Sat Apr 2 21:36:08 2011jaySeverity5 - Blocker=>6 - Security
    Sat Apr 2 20:39:23 2011jayAssigned toNone=>jay
    Sat Apr 2 20:38:50 2011jaySeverity3 - Normal=>5 - Blocker
    Thu Oct 7 09:54:44 2010jaySummaryfind -execdr does not change working directory=>find -execdir does not change working directory
    Sun Jul 18 23:48:08 2010skroobCarbon-Copy-=>Added skroob
    Mon May 24 15:18:58 2010kdudkaAttached File-=>Added 0001-Fix-Savannah-bug-29949-execdir-does-not-change-worki.patch, #20607
    Sun May 23 16:01:30 2010ametzlerCarbon-CopyRemoved 20807=>-

    Back to the top

    Powered by Savane 3.1-cleanup1