summaryrefslogtreecommitdiff
path: root/src/unix
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2016-02-23 20:13:34 +0100
committerMax Kellermann <max@duempel.org>2016-02-23 20:13:34 +0100
commitb3460f3f549d4368ce2823cdc8111987d4d915f1 (patch)
tree6b97669afac4f0186a6ab97b741f57b930c39d4d /src/unix
parent1e0ad1f6bfd13f3dbf7dc6fa3b8c9d8f03b5be2e (diff)
configure.ac, unix/Daemon: check for initgroups() at configure time
The initgroups() manpage says we need to check for _BSD_SOURCE. The thing is that glibc deprecated this macro, and doesn't define it anymore, effectively breaking all MPD supplementary groups. The real fix is to check for initgroups() availability at configure time, instead of relying on the deprecated _BSD_SOURCE macro.
Diffstat (limited to 'src/unix')
-rw-r--r--src/unix/Daemon.cxx2
1 files changed, 1 insertions, 1 deletions
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)
*/