[Top][All Lists]

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

[patch #3701] Additional tweaks for -execdir/-okdir actions

From: Dmitry V. Levin
Subject: [patch #3701] Additional tweaks for -execdir/-okdir actions
Date: Mon, 31 Jan 2005 21:09:52 +0000
User-agent: ELinks

Follow-up Comment #1, patch #3701 (project findutils):

One more fix is required.

* find/pred.c (pred_execdir, pred_okdir): Use state.rel_pathname
instead of basename(pathname) since later is incorrect in this context.
Do not add "./" prefix for absolute pathnames.

Test case:
$ findutils-4.2.15/find/find /usr/bin -mindepth 0 -maxdepth 0 -type d
-execdir echo \{\} \;
$ find /usr/bin -mindepth 0 -maxdepth 0 -type d -execdir echo \{\} \;


Additional Item Attachment:

File name: findutils-4.2.15-alt-find-execdir-okdir.patch Size:6 KB
tweaks and fixes for -execdir/-okdir, take 2


This item URL is:


  Message sent via/by Savannah

reply via email to

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