Lines Matching defs:group
70 char *cp, *group;
72 struct group *grp;
97 fprintf(stderr, "usage: chown [-fR] owner[.group] file ...\n");
101 group = strchr(argv[0], '.');
102 if (group != NULL) {
103 *group++ = '\0';
104 if (!isnumber(group)) {
105 if ((grp = getgrnam(group)) == NULL)
106 fatal(255, "unknown group: %s", group);
109 } else if (*group != '\0') {
111 gid = (gid_t)strtol(group, NULL, 10);
115 "group id too large: %s", group);
117 fatal(2, "group id invalid: %s", group);