From e54cfc9bd4095301093ad4dc70de8bcf827d55bf Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Thu, 10 Jun 2010 15:12:37 -0400 Subject: [PATCH] We don't use getgrouplist() at the moment so there's no need to provide a compat version. --- MANIFEST | 1 - config.h.in | 6 ------ configure | 32 -------------------------------- configure.in | 2 -- include/missing.h | 3 --- 5 files changed, 44 deletions(-) diff --git a/MANIFEST b/MANIFEST index d18d4b158..6fa65bffa 100644 --- a/MANIFEST +++ b/MANIFEST @@ -23,7 +23,6 @@ compat/closefrom.c compat/fnmatch.c compat/fnmatch.h compat/getcwd.c -compat/getgrouplist.c compat/getline.c compat/getprogname.c compat/glob.c diff --git a/config.h.in b/config.h.in index 4db1e03cb..26f560a5e 100644 --- a/config.h.in +++ b/config.h.in @@ -153,15 +153,9 @@ /* Define to 1 if you have the `getdomainname' function. */ #undef HAVE_GETDOMAINNAME -/* Define to 1 if you have the `getgrouplist' function. */ -#undef HAVE_GETGROUPLIST - /* Define to 1 if your system has a working `getgroups' function. */ #undef HAVE_GETGROUPS -/* Define to 1 if you have the `getgrset' function. */ -#undef HAVE_GETGRSET - /* Define to 1 if you have the `getifaddrs' function. */ #undef HAVE_GETIFADDRS diff --git a/configure b/configure index 5b3412f32..4aad53cd0 100755 --- a/configure +++ b/configure @@ -14601,38 +14601,6 @@ done fi done -for ac_func in getgrset -do : - ac_fn_c_check_func "$LINENO" "getgrset" "ac_cv_func_getgrset" -if test "x$ac_cv_func_getgrset" = x""yes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_GETGRSET 1 -_ACEOF - -else - for ac_func in getgrouplist -do : - ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist" -if test "x$ac_cv_func_getgrouplist" = x""yes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_GETGROUPLIST 1 -_ACEOF - -else - case " $LIBOBJS " in - *" $ac_func.$ac_objext "* ) ;; - *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" - ;; -esac - -fi -done - - -fi -done - - for ac_func in sysctl getutid getutxid do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` diff --git a/configure.in b/configure.in index efd31eff5..8f9e379c8 100644 --- a/configure.in +++ b/configure.in @@ -1909,8 +1909,6 @@ AC_CHECK_FUNCS(getline, [], [ AC_LIBOBJ(getline) AC_CHECK_FUNCS(fgetln) ]) -AC_CHECK_FUNCS(getgrset, [], [AC_REPLACE_FUNCS(getgrouplist)]) - AC_CHECK_FUNCS(sysctl getutid getutxid, [break]) AC_CHECK_FUNCS(openpty, [AC_CHECK_HEADERS(util.h pty.h, [break])], [ diff --git a/include/missing.h b/include/missing.h index 1027c64d1..c7056b551 100644 --- a/include/missing.h +++ b/include/missing.h @@ -78,8 +78,5 @@ int unsetenv(const char *); #ifndef HAVE_STRSIGNAL char *strsignal(int); #endif -#ifndef HAVE_GETGROUPLIST -int getgrouplist(const char *name, gid_t basegid, gid_t *groups, int *ngroups); -#endif #endif /* _SUDO_MISSING_H */ -- 2.40.0