Lines Matching refs:ent

221 	register FTSENT*ent;  in b_chgrp()  local
383 while (!sh_checksig(context) && (ent = fts_read(fts))) in b_chgrp()
384 switch (ent->fts_info) in b_chgrp()
391 if ((unsigned long)ent->fts_statp->st_ctime >= before) in b_chgrp()
397 keys[0].uid = keys[1].uid = ent->fts_statp->st_uid; in b_chgrp()
398 keys[0].gid = keys[2].gid = ent->fts_statp->st_gid; in b_chgrp()
420 uid = ent->fts_statp->st_uid; in b_chgrp()
422 gid = ent->fts_statp->st_gid; in b_chgrp()
427 error(ERROR_warn(0), "%s: uid and gid not mapped", ent->fts_path); in b_chgrp()
429 error(ERROR_warn(0), "%s: uid not mapped", ent->fts_path); in b_chgrp()
431 error(ERROR_warn(0), "%s: gid not mapped", ent->fts_path); in b_chgrp()
433 if (uid != ent->fts_statp->st_uid && uid != NOID || gid != ent->fts_statp->st_gid && gid != NOID) in b_chgrp()
435 if ((ent->fts_info & FTS_SL) && (flags & FTS_PHYSICAL) && (options & OPT_LCHOWN)) in b_chgrp()
449 ent->fts_statp->st_uid = 0; in b_chgrp()
450 ent->fts_statp->st_gid = 0; in b_chgrp()
452 … "%s uid:%05d->%05d gid:%05d->%05d %s\n", op, ent->fts_statp->st_uid, uid, ent->fts_statp->st_gid,… in b_chgrp()
454 if (!(options & OPT_SHOW) && (*chownf)(ent->fts_accpath, uid, gid) && !(options & OPT_FORCE)) in b_chgrp()
455 error(ERROR_system(0), "%s: cannot change%s", ent->fts_accpath, s); in b_chgrp()
460 error(ERROR_warn(0), "%s: directory causes cycle", ent->fts_accpath); in b_chgrp()
464 error(ERROR_system(0), "%s: cannot read directory", ent->fts_accpath); in b_chgrp()
468 error(ERROR_system(0), "%s: cannot search directory", ent->fts_accpath); in b_chgrp()
472 error(ERROR_system(0), "%s: not found", ent->fts_accpath); in b_chgrp()