From: Todd C. Miller Date: Sun, 18 Dec 2016 13:50:51 +0000 (-0700) Subject: HAVE_DECL_GETGROUPLIST_2 is always defined if HAVE_GETGROUPLIST_2 is, X-Git-Tag: SUDO_1_8_19^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6aa43ff1e40f47263b571e4cb38b79bfaba36eb6;p=sudo HAVE_DECL_GETGROUPLIST_2 is always defined if HAVE_GETGROUPLIST_2 is, we need to check its value, not whether it is defined. --- diff --git a/include/sudo_compat.h b/include/sudo_compat.h index c2c951f4c..3642a3465 100644 --- a/include/sudo_compat.h +++ b/include/sudo_compat.h @@ -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