Lines Matching defs:uid
124 typedef struct Key_s /* uid/gid key */
126 int uid; /* uid */
130 typedef struct Map_s /* uid/gid map */
146 #define OPT_UID 0x0080 /* have uid */
148 #define OPT_VERBOSE 0x0200 /* have uid */
153 * parse uid and gid from s
165 key->uid = key->gid = NOID;
188 key->uid = n;
231 int uid;
300 uid = st.st_uid;
363 m->to.uid = m->to.gid = NOID;
370 keys[1].gid = keys[2].uid = NOID;
375 if ((uid = key.uid) != NOID)
428 uid = gid = NOID;
429 keys[0].uid = keys[1].uid = ent->fts_statp->st_uid;
436 if (uid == NOID && m->to.uid != NOID)
438 uid = m->to.uid;
447 } while (++i < elementsof(keys) && (uid == NOID || gid == NOID));
452 uid = ent->fts_statp->st_uid;
456 if ((options & OPT_UNMAPPED) && (uid == NOID || gid == NOID))
458 if (uid == NOID && gid == NOID)
459 error(ERROR_warn(0), "%s: uid and gid not mapped", ent->fts_path);
460 else if (uid == NOID)
461 error(ERROR_warn(0), "%s: uid not mapped", ent->fts_path);
465 if (uid != ent->fts_statp->st_uid && uid != NOID || gid != ent->fts_statp->st_gid && gid != NOID)
474 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);
476 if (!(options & OPT_SHOW) && (*chownf)(ent->fts_accpath, uid, gid) && !(options & OPT_FORCE))