diff options
author | Chris D. Faulhaber <jedgar@FreeBSD.org> | 2002-02-21 23:18:04 +0000 |
---|---|---|
committer | Chris D. Faulhaber <jedgar@FreeBSD.org> | 2002-02-21 23:18:04 +0000 |
commit | a82f127b41f544a448b421a9f008b5bcc1e3988c (patch) | |
tree | 3698b51701f506348d17de02743ef47ea47436ef | |
parent | 9fd46b02374ae493e1c20977b8df90343939145a (diff) |
Notes
-rw-r--r-- | lib/libc/posix1e/acl_support.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/posix1e/acl_support.c b/lib/libc/posix1e/acl_support.c index 791b26b18cef..e665d8e8720b 100644 --- a/lib/libc/posix1e/acl_support.c +++ b/lib/libc/posix1e/acl_support.c @@ -90,7 +90,7 @@ _posix1e_acl_entry_compare(struct acl_entry *a, struct acl_entry *b) /* * _posix1e_acl_sort -- sort ACL entries in POSIX.1e-formatted ACLs - * Give the opportunity to fail, althouh we don't currently have a way + * Give the opportunity to fail, although we don't currently have a way * to fail. */ int @@ -268,7 +268,7 @@ _posix1e_acl_id_to_name(acl_tag_t tag, uid_t id, ssize_t buf_len, char *buf) case ACL_GROUP: g = getgrgid(id); - if (!g) + if (g == NULL) i = snprintf(buf, buf_len, "%d", id); else i = snprintf(buf, buf_len, "%s", g->gr_name); |