Lines Matching defs:gid
124 gid_t gid; /* caller gid */
244 (st->st_gid != state->gid && ((st->st_mode & S_ISGID) || (st->st_mode & S_IRGRP) && !(st->st_mode & S_IROTH) || (st->st_mode & S_IXGRP) && !(st->st_mode & S_IXOTH))) ? fmtgid(st->st_gid) : "-");
266 int gid;
294 gid = -1;
298 gid = struid(t);
338 if (gid < 0 || gid == st.st_gid)
339 gid = -1;
345 error(2, "%s: gid should be %s", file, fmtgid(gid));
347 if (state->permissions && (uid >= 0 || gid >= 0))
349 if (chown(file, uid, gid) < 0)
352 error(ERROR_SYSTEM|2, "%s: cannot change group to %s", file, fmtgid(gid));
353 else if (gid < 0)
356 error(ERROR_SYSTEM|2, "%s: cannot change user to %s and group to %s", file, fmtuid(uid), fmtgid(gid));
361 error(1, "%s: changed group to %s", file, fmtgid(gid));
362 else if (gid < 0)
365 error(1, "%s: changed user to %s and group to %s", file, fmtuid(uid), fmtgid(gid));
564 state.gid = getegid();