Home
last modified time | relevance | path

Searched refs:gid (Results 1 – 14 of 14) sorted by relevance

/coreutils/src/
Dchroot.c44 static inline bool gid_unset (gid_t gid) { return gid == (gid_t) -1; } in gid_unset() argument
230 gid_t gid = -1; in main() local
301 ignore_value (parse_user_spec (userspec, &uid, &gid, nullptr, nullptr)); in main()
305 if (uid_set (uid) && (! groups || gid_unset (gid))) in main()
310 if (gid_unset (gid)) in main()
311 gid = pwd->pw_gid; in main()
320 else if (! groups && gid_set (gid) && username) in main()
322 int ngroups = xgetgroups (username, gid, &out_gids); in main()
357 char const *err = parse_user_spec_warn (userspec, &uid, &gid, in main()
365 if (uid_set (uid) && (! groups || gid_unset (gid))) in main()
[all …]
Dgroup-list.c93 gidtostr_ptr (gid_t const *gid) in gidtostr_ptr() argument
96 return umaxtostr (*gid, buf); in gidtostr_ptr()
102 print_group (gid_t gid, bool use_name) in print_group() argument
109 grp = getgrgid (gid); in print_group()
114 intmax_t g = gid; in print_group()
119 uintmax_t g = gid; in print_group()
126 char *s = grp ? grp->gr_name : gidtostr (gid); in print_group()
Dchown-core.c91 gid_to_str (gid_t gid) in gid_to_str() argument
94 return xstrdup (TYPE_SIGNED (gid_t) ? imaxtostr (gid, buf) in gid_to_str()
95 : umaxtostr (gid, buf)); in gid_to_str()
103 gid_to_name (gid_t gid) in gid_to_name() argument
105 struct group *grp = getgrgid (gid); in gid_to_name()
106 return grp ? xstrdup (grp->gr_name) : gid_to_str (gid); in gid_to_name()
231 uid_t uid, gid_t gid, in restricted_chown() argument
264 if (fchown (fd, uid, gid) == 0) in restricted_chown()
284 uid_t uid, gid_t gid, in change_file_owner() argument
418 ok = (lchownat (fts->fts_cwd_fd, file, uid, gid) == 0); in change_file_owner()
[all …]
Dchgrp.c79 gid_t gid = -1; in parse_group() local
85 gid = grp->gr_gid; in parse_group()
93 gid = tmp; in parse_group()
98 return gid; in parse_group()
174 gid_t gid; in main() local
290 gid = ref_stats.st_gid; in main()
297 gid = parse_group (group_name); in main()
311 (uid_t) -1, gid, in main()
Dchown.c160 gid_t gid = -1; /* Specified gid; -1 if not to be changed. */ in main() local
293 gid = ref_stats.st_gid; in main()
300 char const *e = parse_user_spec_warn (argv[optind], &uid, &gid, in main()
326 uid, gid, in main()
Dchown-core.h87 uid_t uid, gid_t gid,
Did.c310 gidtostr_ptr (gid_t const *gid) in gidtostr_ptr() argument
313 return umaxtostr (*gid, buf); in gidtostr_ptr()
Dsystem.h230 # define getgrgid(gid) getgrgid_nomembers(gid) argument
Dcopy.c898 fchown_or_lchown (int desc, int dirfd, char const *name, uid_t uid, gid_t gid) in fchown_or_lchown() argument
902 return fchown (desc, uid, gid); in fchown_or_lchown()
904 return lchownat (dirfd, name, uid, gid); in fchown_or_lchown()
926 gid_t gid = src_sb->st_gid; in set_owner() local
953 if (fchown_or_lchown (dest_desc, dst_dirfd, dst_relname, uid, gid) == 0) in set_owner()
961 -1, gid)); in set_owner()
/coreutils/scripts/build-older-versions/
Dcoreutils-5.0-on-glibc-2.28.diff47 /* Do the same thing access(2) does, but use the effective uid and gid. */
/coreutils/
Dinit.cfg704 skip_ 'Files are created with a different gid'
DNEWS4801 without changing the uid or gid, instead of reporting an error.
/coreutils/tests/
Dlocal.mk112 tests/cp/preserve-gid.sh \
/coreutils/doc/
Dcoreutils.texi8061 @itemx --numeric-uid-gid
8063 @opindex --numeric-uid-gid
8064 @cindex numeric uid and gid