aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-08-13 16:18:05 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-08-13 16:18:05 +0000
commitd344e8b4ed112cd60a2d92798454c50c2c1287be (patch)
tree5130d04bd65ffd703eddc22bc62ed1f9d596b310 /src/main.c
parent63efaae0eecc391b157fed544af1b72af50e5a63 (diff)
downloadmpd-d344e8b4ed112cd60a2d92798454c50c2c1287be.tar.gz
mpd-d344e8b4ed112cd60a2d92798454c50c2c1287be.tar.xz
mpd-d344e8b4ed112cd60a2d92798454c50c2c1287be.zip
patch from Benoit.Boissinot@ens-lyon.fr to remove getgroups and setgroups
git-svn-id: https://svn.musicpd.org/mpd/trunk@2028 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/main.c b/src/main.c
index c34c71f5b..858d718f5 100644
--- a/src/main.c
+++ b/src/main.c
@@ -230,9 +230,6 @@ void establishListen(Options * options) {
void changeToUser(Options * options) {
if (options->usr && strlen(options->usr)) {
int uid, gid;
-#ifdef _BSD_SOURCE
- gid_t gid_list[NGROUPS_MAX];
-#endif
/* get uid */
struct passwd * userpwd;
@@ -258,18 +255,6 @@ void changeToUser(Options * options) {
"of user %s: %s\n", options->usr,
strerror(errno));
}
- else if(getgroups(NGROUPS_MAX, gid_list) == -1) {
- ERROR("cannot get groups "
- "of user %s: %s\n", options->usr,
- strerror(errno));
- exit(EXIT_FAILURE);
- }
- else if(setgroups(NGROUPS_MAX, gid_list) == -1) {
- ERROR("cannot set groups "
- "of user %s: %s\n", options->usr,
- strerror(errno));
- exit(EXIT_FAILURE);
- }
#endif
/* set uid */