Lines Matching refs:group
23 // if a group id specified.
25 char *group = NULL;
27 if ((group = strchr(user, ':')) != NULL) {
28 *group++ = '\0';
29 } else if ((group = strchr(user, '.')) != NULL) {
30 *group++ = '\0';
35 struct group *grp = NULL;
37 gid_t gid = -1; // passing -1 to chown preserves current group
51 if (group != NULL) {
52 grp = getgrnam(group);
57 gid = (int) strtoul(group, &endptr, 0);
58 if (endptr == group) { // no conversion
59 fprintf(stderr, "No such group '%s'\n", group);