Lines Matching refs:ent

232 	register FTSENT*ent;  in b_chgrp()  local
403 while (!sh_checksig(context) && (ent = fts_read(fts))) in b_chgrp()
404 switch (ent->fts_info) in b_chgrp()
418 error(ERROR_system(0), "%s: cannot change symlink owner/group", ent->fts_path); in b_chgrp()
429 if ((unsigned long)ent->fts_statp->st_ctime >= before) in b_chgrp()
435 keys[0].uid = keys[1].uid = ent->fts_statp->st_uid; in b_chgrp()
436 keys[0].gid = keys[2].gid = ent->fts_statp->st_gid; in b_chgrp()
458 uid = ent->fts_statp->st_uid; in b_chgrp()
460 gid = ent->fts_statp->st_gid; in b_chgrp()
465 error(ERROR_warn(0), "%s: uid and gid not mapped", ent->fts_path); in b_chgrp()
467 error(ERROR_warn(0), "%s: uid not mapped", ent->fts_path); in b_chgrp()
469 error(ERROR_warn(0), "%s: gid not mapped", ent->fts_path); in b_chgrp()
471 if (uid != ent->fts_statp->st_uid && uid != NOID || gid != ent->fts_statp->st_gid && gid != NOID) in b_chgrp()
477 ent->fts_statp->st_uid = 0; in b_chgrp()
478 ent->fts_statp->st_gid = 0; in b_chgrp()
480 … "%s uid:%05d->%05d gid:%05d->%05d %s\n", op, ent->fts_statp->st_uid, uid, ent->fts_statp->st_gid,… in b_chgrp()
482 if (!(options & OPT_SHOW) && (*chownf)(ent->fts_accpath, uid, gid) && !(options & OPT_FORCE)) in b_chgrp()
483 error(ERROR_system(0), "%s: cannot change%s", ent->fts_path, s); in b_chgrp()
488 error(ERROR_warn(0), "%s: directory causes cycle", ent->fts_path); in b_chgrp()
492 error(ERROR_system(0), "%s: cannot read directory", ent->fts_path); in b_chgrp()
496 error(ERROR_system(0), "%s: cannot search directory", ent->fts_path); in b_chgrp()
500 error(ERROR_system(0), "%s: not found", ent->fts_path); in b_chgrp()