Correct check of getgrnam output

Approved by:	rwatson
This commit is contained in:
jedgar 2001-01-07 21:41:05 +00:00
parent 17469eca96
commit 01950c7ecf
2 changed files with 2 additions and 2 deletions

View File

@ -302,7 +302,7 @@ acl_name_to_id(acl_tag_t tag, char *name, uid_t *id)
case ACL_GROUP:
g = getgrnam(name);
if (g) {
if (!g) {
errno = EINVAL;
return (-1);
}

View File

@ -302,7 +302,7 @@ acl_name_to_id(acl_tag_t tag, char *name, uid_t *id)
case ACL_GROUP:
g = getgrnam(name);
if (g) {
if (!g) {
errno = EINVAL;
return (-1);
}