Lines Matching refs:uid
138 uid_t uid; /* caller uid */
243 (st->st_uid != state->uid && ((st->st_mode & S_ISUID) || (st->st_mode & S_IRUSR) && !(st->st_mode & (S_IRGRP|S_IROTH)) || (st->st_mode & S_IXUSR) && !(st->st_mode & (S_IXGRP|S_IXOTH)))) ? fmtuid(st->st_uid) : "-",
265 int uid;
284 uid = -1;
288 uid = struid(e);
329 if (uid < 0 || uid == st.st_uid)
330 uid = -1;
336 error(2, "%s: uid should be %s", file, fmtuid(uid));
347 if (state->permissions && (uid >= 0 || gid >= 0))
349 if (chown(file, uid, gid) < 0)
351 if (uid < 0)
354 error(ERROR_SYSTEM|2, "%s: cannot change user to %s", file, fmtuid(uid));
356 error(ERROR_SYSTEM|2, "%s: cannot change user to %s and group to %s", file, fmtuid(uid), fmtgid(gid));
360 if (uid < 0)
363 error(1, "%s: changed user to %s", file, fmtuid(uid));
365 error(1, "%s: changed user to %s and group to %s", file, fmtuid(uid), fmtgid(gid));
563 state.uid = geteuid();