We don't use getgrouplist() at the moment so there's no need to

provide a compat version.
This commit is contained in:
Todd C. Miller
2010-06-10 15:12:37 -04:00
parent 7795284879
commit e54cfc9bd4
5 changed files with 0 additions and 44 deletions

View File

@@ -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

View File

@@ -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

32
configure vendored
View File

@@ -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`

View File

@@ -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])], [

View File

@@ -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 */