Line
Link Here
|
0 |
-- a/find/ftsfind.c |
0 |
++ b/find/ftsfind.c |
Lines 227-233
visit(FTS *p, FTSENT *ent, struct stat *pstat)
Link Here
|
227 |
{ |
227 |
{ |
228 |
struct predicate *eval_tree; |
228 |
struct predicate *eval_tree; |
229 |
|
229 |
|
230 |
state.curdepth = ent->fts_level; |
|
|
231 |
state.have_stat = (ent->fts_info != FTS_NS) && (ent->fts_info != FTS_NSOK); |
230 |
state.have_stat = (ent->fts_info != FTS_NS) && (ent->fts_info != FTS_NSOK); |
232 |
state.rel_pathname = ent->fts_accpath; |
231 |
state.rel_pathname = ent->fts_accpath; |
233 |
state.cwd_dir_fd = p->fts_cwd_fd; |
232 |
state.cwd_dir_fd = p->fts_cwd_fd; |
Lines 490-495
consider_visiting(FTS *p, FTSENT *ent)
Link Here
|
490 |
} |
489 |
} |
491 |
} |
490 |
} |
492 |
|
491 |
|
|
|
492 |
/* update state.curdepth before calling digest_mode(), because digest_mode |
493 |
* may call following_links(). |
494 |
*/ |
495 |
state.curdepth = ent->fts_level; |
493 |
if (mode) |
496 |
if (mode) |
494 |
{ |
497 |
{ |
495 |
if (!digest_mode(mode, ent->fts_path, ent->fts_name, &statbuf, 0)) |
498 |
if (!digest_mode(mode, ent->fts_path, ent->fts_name, &statbuf, 0)) |