samba-getgrouplist.patch 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. diff -ur samba-3.0.25a/source/configure.in samba-3.0.25a-patched/source/configure.in
  2. --- samba-3.0.25a/source/configure.in 2007-05-23 10:29:20.000000000 -0500
  3. +++ samba-3.0.25a-patched/source/configure.in 2007-06-19 11:38:21.000000000 -0500
  4. @@ -1370,38 +1370,6 @@
  5. AC_DEFINE(HAVE_PRCTL, 1, [Whether prctl is available]),[])
  6. #
  7. -#
  8. -#
  9. -case "$host_os" in
  10. - *linux*)
  11. - # glibc <= 2.3.2 has a broken getgrouplist
  12. - AC_TRY_RUN([
  13. -#include <unistd.h>
  14. -#include <sys/utsname.h>
  15. -main() {
  16. - /* glibc up to 2.3 has a broken getgrouplist */
  17. -#if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
  18. - int libc_major = __GLIBC__;
  19. - int libc_minor = __GLIBC_MINOR__;
  20. -
  21. - if (libc_major < 2)
  22. - exit(1);
  23. - if ((libc_major == 2) && (libc_minor <= 3))
  24. - exit(1);
  25. -#endif
  26. - exit(0);
  27. -}
  28. -], [linux_getgrouplist_ok=yes], [linux_getgrouplist_ok=no])
  29. - if test x"$linux_getgrouplist_ok" = x"yes"; then
  30. - AC_DEFINE(HAVE_GETGROUPLIST, 1, [Have good getgrouplist])
  31. - fi
  32. - ;;
  33. - *)
  34. - AC_CHECK_FUNCS(getgrouplist)
  35. - ;;
  36. -esac
  37. -
  38. -#
  39. # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
  40. #