[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 \{\} \;
./bin
$ find /usr/bin -mindepth 0 -maxdepth 0 -type d -execdir echo \{\} \;
/usr/bin
_______________________________________________________
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
<http://savannah.gnu.org/patch/download.php?item_id=3701&item_file_id=4123>
_______________________________________________________
This item URL is:
<http://savannah.gnu.org/patch/?func=detailitem&item_id=3701>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/