Home | History | Annotate | Download | only in toolbox

Lines Matching full:group

18         fprintf(stderr, "Usage: chown <USER>[.GROUP] <FILE1> [FILE2] ...\n");
23 // if a group id specified.
25 char *group = NULL;
27 if ((group = strchr(user, '.')) != NULL) {
28 *group++ = '\0';
33 struct group *grp = NULL;
35 gid_t gid = -1; // passing -1 to chown preserves current group
49 if (group != NULL) {
50 grp = getgrnam(group);
55 gid = (int) strtoul(group, &endptr, 0);
56 if (endptr == group) { // no conversion
57 fprintf(stderr, "No such group '%s'\n", group);