Your message dated Sat, 14 May 2011 15:49:54 +0200
with message-id <[email protected]>
and subject line Re: Bug#548944: /usr/bin/find: exedir does not run from the 
subdirectory containing the matched file.
has caused the Debian Bug report #548944,
regarding /usr/bin/find: exedir does not run from the subdirectory containing 
the matched file.
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
548944: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=548944
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: findutils
Version: 4.4.0-2
Severity: normal
File: /usr/bin/find



-- System Information:
Debian Release: 5.0.2
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages findutils depends on:
ii  libc6                         2.7-18     GNU C Library: Shared libraries

findutils recommends no packages.

Versions of packages findutils suggests:
ii  mlocate                       0.21.1-1   quickly find files on the filesyst

-- no debconf information

>From the manpage:
       -execdir command ;
              Like -exec, but the specified command is run from the 
subdirectory containing the matched file, which is not no

Debian Example
poe@lenore:/var$ find -L . -name dreary.html -exec ls {} \;
../dreary.example.com/html/dreary.html
poe@lenore:/var$ find -L . -name dreary.html -execdir ls {} \;
.././dreary.example.com/html/dreary.html
poe@lenore:/var$ find -L . -name dreary.html -exec ls  \;
dreary.example.com         americanmouse.example.com    cbs.example.com       
common           example.zip  nowmouse.example.com           scripts            
 sdsgl.example.com
admin.example.com  best.example.com             citymice.example.com  
dan.example.com  mkstops      riveroaksmouses.example.com  sdindy.example.com  
supershot.example.com
poe@lenore:/var$ find -L . -name dreary.html -execdir ls  \;
dreary.example.com         americanmouse.example.com    cbs.example.com       
common           example.zip  nowmouse.example.com           scripts            
 sdsgl.example.com
admin.example.com  best.example.com             citymice.example.com  
dan.example.com  mkstops      riveroaksmouses.example.com  sdindy.example.com  
supershot.example.com
poe@lenore:/var$ 

Centos Example
[root@lion apache-tomcat]# find -name catalina.out.1 -exec ls {} \;
../apache-tomcat-5.5.7/logs/catalina.out.1
[root@lion apache-tomcat]# find -name catalina.out.1 -execdir ls {} \;
../catalina.out.1
[root@lion apache-tomcat]# find -name catalina.out.1 -exec ls \;
apache-tomcat-5.5.7  current
[root@lion apache-tomcat]# find -name catalina.out.1 -execdir ls \;
catalina.out        catalina.out.11.gz  catalina.out.14.gz  catalina.out.17.gz  
catalina.out.20.gz  catalina.out.2.gz  catalina.out.5.gz  catalina.out.8.gz
catalina.out.1      catalina.out.12.gz  catalina.out.15.gz  catalina.out.18.gz  
catalina.out.21.gz  catalina.out.3.gz  catalina.out.6.gz  catalina.out.9.gz
catalina.out.10.gz  catalina.out.13.gz  catalina.out.16.gz  catalina.out.19.gz  
catalina.out.22.gz  catalina.out.4.gz  catalina.out.7.gz

[root@lion apache-tomcat]# uname -a
Linux lion.example.com 2.6.18-92.1.22.el5PAE #1 SMP Tue Dec 16 12:36:25 EST 
2008 i686 i686 i386 GNU/Linux



--- End Message ---
--- Begin Message ---
Version: 4.5.9-1

On 2009-09-30 Andreas Metzler <[email protected]> wrote:
> On 2009-09-29 Jim Lebeau <[email protected]> wrote:
> > Package: findutils
> > Version: 4.4.0-2
[...]
> > poe@lenore:/var$ find -L . -name dreary.html -execdir ls {} \;
> > .././dreary.example.com/html/dreary.html
[...]
> > [root@lion apache-tomcat]# find -name catalina.out.1 -execdir ls {} \;
> > ../catalina.out.1
[...]

> The major difference between the two examples seems to be the presence
> of the -L switch and not the underlying OS. ;-)

This is fixed in experimental.

--------------------
* Major changes in release 4.5.9, 2010-04-29
[...]
** Bug Fixes
[...]
#27563: -L breaks -execdir
--------------------


cu andreas


--- End Message ---

Reply via email to