Correct check of getgrnam output

Approved by:	rwatson
This commit is contained in:
Chris D. Faulhaber 2001-01-07 21:41:05 +00:00
parent e33042af13
commit 4786e00b40
2 changed files with 2 additions and 2 deletions
lib
libc/posix1e
libposix1e

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);
}