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