Lines Matching refs:ent
158 register FTSENT*ent; in b_chmod() local
262 while (!sh_checksig(context) && (ent = fts_read(fts))) in b_chmod()
263 switch (ent->fts_info) in b_chmod()
268 if (!(flags & FTS_PHYSICAL) || (flags & FTS_META) && ent->fts_level == 1) in b_chmod()
269 fts_set(NiL, ent, FTS_FOLLOW); in b_chmod()
278 mode = strperm(amode, &last, ent->fts_statp->st_mode); in b_chmod()
279 if (show || (*chmodf)(ent->fts_accpath, mode) >= 0) in b_chmod()
281 if (notify == 2 || notify == 1 && (mode&S_IPERM) != (ent->fts_statp->st_mode&S_IPERM)) in b_chmod()
282 … sfprintf(sfstdout, "%s: mode changed to %0.4o (%s)\n", ent->fts_path, mode, fmtmode(mode, 1)+1); in b_chmod()
285 error(ERROR_system(0), "%s: cannot change mode", ent->fts_accpath); in b_chmod()
289 error(ERROR_warn(0), "%s: directory causes cycle", ent->fts_accpath); in b_chmod()
293 error(ERROR_system(0), "%s: cannot read directory", ent->fts_accpath); in b_chmod()
297 error(ERROR_system(0), "%s: cannot search directory", ent->fts_accpath); in b_chmod()
301 error(ERROR_system(0), "%s: not found", ent->fts_accpath); in b_chmod()