diff --git a/NEWS b/NEWS index c1cd6cb25..bca7dc259 100644 --- a/NEWS +++ b/NEWS @@ -3,6 +3,7 @@ ver 0.19.13 (not yet released) - aiff, riff: fix ID3 chunk padding * decoder - ffmpeg: support the TAK codec +* initialize supplementary groups with glibc 2.19+ ver 0.19.12 (2015/12/15) * fix assertion failure on malformed UTF-8 tag diff --git a/configure.ac b/configure.ac index 10e77ca79..39f2aaf0c 100644 --- a/configure.ac +++ b/configure.ac @@ -206,6 +206,7 @@ if test x$host_is_linux = xyes; then fi AC_CHECK_FUNCS(getpwnam_r getpwuid_r) +AC_CHECK_FUNCS(initgroups) AC_CHECK_FUNCS(strndup) if test x$host_is_linux = xyes; then diff --git a/src/unix/Daemon.cxx b/src/unix/Daemon.cxx index d283108ed..67704a9a1 100644 --- a/src/unix/Daemon.cxx +++ b/src/unix/Daemon.cxx @@ -110,7 +110,7 @@ daemonize_set_user(void) (int)user_gid); } -#ifdef _BSD_SOURCE +#ifdef HAVE_INITGROUPS /* init supplementary groups * (must be done before we change our uid) */