This pair of patches also fixes bug #29460. In fact, the first patch is identical to my earliuer patch for this bug except for the fact that it updates the NEWS file.
The changes look like this: commit 8061fc433bdbc0b1a14a466d4b831b46388b2f45 Author: James Youngman <[email protected]> Date: Wed Apr 7 10:48:09 2010 +0100 More stat/xstat cleanup. * find/parser.c (estimate_fstype_success_rate): Change the name of the variable "dir" to "the_root_dir" to emphasise that it doesn't matter that we're calling stat rather than options.xstat. * find/ftsfind.c (symlink_loop): Call options.xstat instead of stat/lstat, because options.xstat takes account of state.cwd_dir_fd. Signed-off-by: James Youngman <[email protected]> commit 3c6dffb5b962f546868ebfbaa05677de3b868414 Author: James Youngman <[email protected]> Date: Wed Apr 7 10:20:55 2010 +0100 Fix Savannah bug 29460, -printf %Y fails in $CWD-dependent way * find/pred.c (do_fprintf): Use optionl_stat and optionp_stat instead of stat and lstat, because the first two functions are aware of state.cwd_dir_fd. * find/testsuite/find.gnu/printf-nonlocal-symlink.exp: A new test case for this bug. * find/testsuite/find.gnu/printf-nonlocal-symlink.xo: Expected output for this test. * find/testsuite/Makefile.am (EXTRA_DIST_EXP): Add the new test case. (EXTRA_DIST_XO): Add the expected-output file. Signed-off-by: James Youngman <[email protected]> Stats for these patches: ChangeLog | 23 ++++++++++++++++++++ NEWS | 2 + find/ftsfind.c | 6 +---- find/parser.c | 8 +++--- find/pred.c | 2 +- find/testsuite/Makefile.am | 2 + .../testsuite/find.gnu/printf-nonlocal-symlink.exp | 7 ++++++ find/testsuite/find.gnu/printf-nonlocal-symlink.xo | 1 + 8 files changed, 41 insertions(+), 10 deletions(-) _______________________________________________ Findutils-patches mailing list [email protected] http://lists.gnu.org/mailman/listinfo/findutils-patches
