accessible when control reaches this point. So, if this is
the first time we've seen the FTS_NS for this file, tell
fts_read to stat it "again". */
- if (ent->fts_level == 0 && ent->fts_number == 0)
+ if (ent->fts_level == FTS_ROOTLEVEL && ent->fts_number == 0)
{
ent->fts_number = 1;
fts_set (fts, ent, FTS_AGAIN);
accessible when control reaches this point. So, if this is
the first time we've seen the FTS_NS for this file, tell
fts_read to stat it "again". */
- if (ent->fts_level == 0 && ent->fts_number == 0)
+ if (ent->fts_level == FTS_ROOTLEVEL && ent->fts_number == 0)
{
ent->fts_number = 1;
fts_set (fts, ent, FTS_AGAIN);
umask_value, change, nullptr);
bool follow_symlink = !!dereference;
if (dereference == -1) /* -H with/without -R, -P without -R. */
- follow_symlink = ent->fts_level == 0;
+ follow_symlink = ent->fts_level == FTS_ROOTLEVEL;
if (fchmodat (fts->fts_cwd_fd, file, ch.new_mode,
follow_symlink ? 0 : AT_SYMLINK_NOFOLLOW) == 0)
ch.status = CH_SUCCEEDED;
accessible when control reaches this point. So, if this is
the first time we've seen the FTS_NS for this file, tell
fts_read to stat it "again". */
- if (ent->fts_level == 0 && ent->fts_number == 0)
+ if (ent->fts_level == FTS_ROOTLEVEL && ent->fts_number == 0)
{
ent->fts_number = 1;
fts_set (fts, ent, FTS_AGAIN);