Home
last modified time | relevance | path

Searched refs:st_gid (Results 26 – 50 of 115) sorted by relevance

12345

/illumos-gate/usr/src/cmd/oamuser/group/
H A Dmod_group.c78 fchown(fd, sbuf.st_uid, sbuf.st_gid) != 0) { in mod_group()
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
H A Dcp.c214 n = ((ns->st_uid != os->st_uid) << 1) | (ns->st_gid != os->st_gid); in preserve()
215 if (n && chown(state->path, os->st_uid, os->st_gid)) in preserve()
219 error(ERROR_SYSTEM|2, "%s: cannot reset group to %s", path, fmtgid(os->st_gid)); in preserve()
225 …M|2, "%s: cannot reset owner to %s and group to %s", path, fmtuid(os->st_uid), fmtgid(os->st_gid)); in preserve()
/illumos-gate/usr/src/lib/pam_modules/timestamp/
H A Dpam_timestamp.c128 if (sb.st_uid != 0 || sb.st_gid != 0) { in validate_dir()
237 if (sb.st_uid != 0 || sb.st_gid != 0) { in pam_sm_authenticate()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dnlspath_checks.c150 (statbuf->st_gid < 4 && statbuf->st_gid != 1))) { in nls_safe_open()
/illumos-gate/usr/src/cmd/ypcmd/yppasswd/
H A Dchangepasswd.c248 fchown(npwfd, pwstat.st_uid, pwstat.st_gid); in changepasswd()
272 fchown(nspfd, spstat.st_uid, spstat.st_gid); in changepasswd()
298 fchown(nadjfd, adjstat.st_uid, adjstat.st_gid); in changepasswd()
/illumos-gate/usr/src/cmd/pwconv/
H A Dpwconv.c157 pwd_gid = buf.st_gid; in main()
186 sp_gid = buf.st_gid; in main()
/illumos-gate/usr/src/tools/protolist/
H A Dprotolist.c136 gid = stdfindbyvalue(st->st_gid, groupnames); in visit_dir()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/
H A Dtest.c413 return(statb.st_gid==shp->gd->groupid); in test_unop()
606 else if(shp->gd->egroupid == statb.st_gid) in sh_access()
628 if(groups[n] == statb.st_gid) in sh_access()
H A Dshiocmd_solaris.c406 { "gid", NV_INTEGER|NV_RDONLY, offsetof(struct stat,st_gid), sizeof(Sp->st_gid)},
/illumos-gate/usr/src/cmd/oamuser/user/
H A Dproj.c78 fchown(fd, sbuf.st_uid, sbuf.st_gid) != 0) { in edit_project()
H A Dgroups.c87 fchown(fd, sbuf.st_uid, sbuf.st_gid) != 0) { in edit_group()
/illumos-gate/usr/src/lib/libc/port/stdio/
H A Dsystem.c140 } else if (getgid() == buf.st_gid) { in system()
/illumos-gate/usr/src/cmd/fs.d/smbclnt/chacl/
H A Dchacl.c194 gid = st.st_gid; in chacl()
/illumos-gate/usr/src/cmd/ndmpd/tlm/
H A Dtlm_restore_writer.c470 acls->acl_attr.st_gid = in tar_getdir()
490 acls->acl_attr.st_uid, acls->acl_attr.st_gid, in tar_getdir()
1343 (void) fchown(fd, st.st_uid, st.st_gid); in set_xattr()
1460 acls->acl_attr.st_gid = oct_atoi(tar_hdr->th_gid); in restore_xattr_hdr()
1465 acls->acl_attr.st_uid, acls->acl_attr.st_gid); in restore_xattr_hdr()
2100 "mode %o", name, st->st_uid, st->st_gid, acls->uname, acls->gname, in set_attr()
2110 gid = st->st_gid; in set_attr()
H A Dtlm_backup_reader.c297 attr->st_gid); in output_xattr_header()
304 aname, hsize, attr->st_mode & 07777, attr->st_uid, attr->st_gid); in output_xattr_header()
382 if ((grp = getgrgid(attr->st_gid)) != NULL) in output_file_header()
387 if ((ulong_t)(gid = attr->st_gid) > (ulong_t)OCTAL7CHAR) in output_file_header()
/illumos-gate/usr/src/lib/libproc/common/
H A Dpr_stat.c52 dest->st_gid = (gid_t)src->st_gid; in stat64_32_to_n()
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Dacl_api.c314 gid = st.st_gid; in smbfs_acl_set()
/illumos-gate/usr/src/cmd/cpio/
H A Dcpio.h279 gid_t st_gid; /* actual gid */ member
/illumos-gate/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_fhistory.c178 entry->fstat.gid = file_stat->st_gid; in ndmpd_api_file_history_path_v2()
354 entry->fstat.gid = file_stat->st_gid; in ndmpd_api_file_history_node_v2()
488 file_stat_entry->group = file_stat->st_gid; in ndmpd_api_file_history_file_v3()
703 file_stat_entry->group = file_stat->st_gid; in ndmpd_api_file_history_node_v3()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/rdist/
H A Dserver.c352 if (gr == NULL || gr->gr_gid != stb.st_gid) in sendf()
353 if ((gr = getgrgid(stb.st_gid)) == NULL) { in sendf()
355 target, stb.st_gid); in sendf()
357 sprintf(group, ":%d", stb.st_gid); in sendf()
/illumos-gate/usr/src/lib/lib9p/common/
H A Dgenacl.c140 match = l9p_ingroup(st->st_gid, gid, gids, ngids); in l9p_check_aces()
418 else if (l9p_ingroup(st->st_gid, gid, gids, ngids)) in l9p_acl_check_access()
/illumos-gate/usr/src/cmd/syseventd/modules/devfsadmd_mod/
H A Ddevfsadmd_mod.c103 ((getegid() == st.st_gid) && ((st.st_mode & S_IXGRP) == 0)) || in system1()
/illumos-gate/usr/src/common/fs/
H A Dbootfsops.c292 bsp->st_uid = bsp->st_gid = 0; in bbootfs_fstat()
/illumos-gate/usr/src/cmd/find/
H A Dfind.c991 l = (long)statb->st_gid; in execute()
1101 val = ((getgrgid(statb->st_gid)) == 0); in execute()
1799 cp = getgroup(stp->st_gid); in list()
1803 (void) sprintf(gname, "%-8u ", stp->st_gid); in list()
/illumos-gate/usr/src/cmd/passmgmt/
H A Dpassmgmt.c678 error = fchown(fd_ptemp, statbuf.st_uid, statbuf.st_gid); in main()
722 error = fchown(fd_stemp, statbuf.st_uid, statbuf.st_gid); in main()
762 error = fchown(fd_uatemp, statbuf.st_uid, statbuf.st_gid); in main()

12345