]> granicus.if.org Git - sudo/commitdiff
HAVE_DECL_GETGROUPLIST_2 is always defined if HAVE_GETGROUPLIST_2 is,
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 18 Dec 2016 13:50:51 +0000 (06:50 -0700)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 18 Dec 2016 13:50:51 +0000 (06:50 -0700)
we need to check its value, not whether it is defined.

include/sudo_compat.h

index c2c951f4cd652bd269fb54732fb952f12a0d9ccd..3642a3465d5d48ef038cd2d4404524afe332ba6b 100644 (file)
@@ -392,7 +392,7 @@ __dso_public int sudo_getgrouplist(const char *name, gid_t basegid, gid_t *group
 # undef getgrouplist
 # define getgrouplist(_a, _b, _c, _d) sudo_getgrouplist((_a), (_b), (_c), (_d))
 #endif /* GETGROUPLIST */
-#if defined(HAVE_GETGROUPLIST_2) && !defined(HAVE_DECL_GETGROUPLIST_2)
+#if defined(HAVE_GETGROUPLIST_2) && !HAVE_DECL_GETGROUPLIST_2
 int getgrouplist_2(const char *name, gid_t basegid, gid_t **groups);
 #endif /* HAVE_GETGROUPLIST_2 && !HAVE_DECL_GETGROUPLIST_2 */
 #ifndef HAVE_GETLINE