Lines Matching refs:gid
51 mkmount(register Cs_t* state, int mode, int uid, int gid, char* endserv, char* endhost, char* endtype)
84 if (mode != (S_IRWXU|S_IRWXG|S_IRWXO) && (uid >= 0 || gid >= 0 && (mode |= S_ISGID)) && (chown(state->mount, uid, gid) || chmod(state->mount, mode)))
623 int gid = -1;
890 if ((gid = strgid(s)) < 0)
892 gid = strtol(s, &t, 0);
899 if (geteuid() && gid != n)
902 if (gid == groups[n])
912 gid = n;
1087 else if (gid >= 0)
1088 b += sfsprintf(b, sizeof(state->mount) - (b - path), "-%d", gid);
1124 if ((op & CS_OPEN_CREATE) && mkmount(state, mode, uid, gid, endserv, endhost, endtype))
1261 if (uid >= 0 && st.st_uid != uid || gid >= 0 && st.st_gid != gid)
1265 messagef((state->id, NiL, -1, "open: %s: %s: uid/gid error", state->path, path));