aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2012-08-30 14:52:01 -0500
committerTed Gould <ted@gould.cx>2012-08-30 14:52:01 -0500
commitaedd47474a4e9de46169456547aaa741fc6dd49e (patch)
tree08c5ad5b1ae99d84b98843869da77208d3f15f04 /src
parentc5549b6ee9ee88df4464dbbe2e2b9894ce80e6c4 (diff)
downloadlibpam-x2go-aedd47474a4e9de46169456547aaa741fc6dd49e.tar.gz
libpam-x2go-aedd47474a4e9de46169456547aaa741fc6dd49e.tar.bz2
libpam-x2go-aedd47474a4e9de46169456547aaa741fc6dd49e.zip
Removing setgroups as it doesn't seem to be working
Diffstat (limited to 'src')
-rw-r--r--src/pam-freerdp.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/pam-freerdp.c b/src/pam-freerdp.c
index 88286c9..24a55d0 100644
--- a/src/pam-freerdp.c
+++ b/src/pam-freerdp.c
@@ -239,10 +239,6 @@ pam_sm_authenticate (pam_handle_t *pamh, int flags, int argc, const char **argv)
_exit(EXIT_FAILURE);
}
- if (setgroups(1, &pwdent->pw_gid) != 0) {
- _exit(EXIT_FAILURE);
- }
-
if (clearenv() != 0) {
_exit(EXIT_FAILURE);
}
@@ -314,11 +310,6 @@ session_socket_handler (struct passwd * pwdent, int readypipe, const char * ruse
return EXIT_FAILURE;
}
- if (setgroups(1, &pwdent->pw_gid) != 0) {
- /* Don't need to clean up yet */
- return EXIT_FAILURE;
- }
-
if (clearenv() != 0) {
/* Don't need to clean up yet */
return EXIT_FAILURE;
@@ -526,10 +517,6 @@ pam_sm_close_session (pam_handle_t *pamh, int flags, int argc, const char **argv
_exit(EXIT_FAILURE);
}
- if (setgroups(1, &pwdent->pw_gid) != 0) {
- _exit(EXIT_FAILURE);
- }
-
if (clearenv() != 0) {
_exit(EXIT_FAILURE);
}