[X2Go-Commits] libpam-x2go.git - build-main (branch) updated: c3ab8f90c5f29e9a5e011372211296a54e45c927
X2Go dev team
git-admin at x2go.org
Sat Apr 27 13:45:33 CEST 2013
The branch, build-main has been updated
via c3ab8f90c5f29e9a5e011372211296a54e45c927 (commit)
from 55e28977cad16a59abecbe5857fbebfefab4f811 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
-----------------------------------------------------------------------
Summary of changes:
src/pam-freerdp.c | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
The diff of changes is:
diff --git a/src/pam-freerdp.c b/src/pam-freerdp.c
index 5696bbd..9007a52 100644
--- a/src/pam-freerdp.c
+++ b/src/pam-freerdp.c
@@ -250,7 +250,7 @@ done:
}
static int
-session_socket_handler (struct passwd * pwdent, const char * ruser, const char * rhost, const char * rdomain, const char * password)
+session_socket_handler (struct passwd * pwdent, int readypipe, const char * ruser, const char * rhost, const char * rdomain, const char * password)
{
/* Socket stuff */
int socketfd = 0;
@@ -402,16 +402,27 @@ pam_sm_open_session (pam_handle_t *pamh, int flags, int argc, const char ** argv
goto done;
}
+ int sessionready[2];
+ if (pipe(sessionready) != 0) {
+ retval = PAM_SYSTEM_ERR;
+ goto done;
+ }
+
pid_t pid = fork();
if (pid == 0) {
int retval = 0;
- retval = session_socket_handler(pwdent, ruser, rhost, rdomain, password);
+ retval = session_socket_handler(pwdent, sessionready[1], ruser, rhost, rdomain, password);
+ close(sessionready[1]);
_exit(retval);
} else if (pid < 0) {
+ close(sessionready[0]);
+ close(sessionready[1]);
+
retval = PAM_SYSTEM_ERR;
} else {
+ close(sessionready[0]);
session_pid = pid;
}
hooks/post-receive
--
libpam-x2go.git (Remote login session via X2Go (PAM module))
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "libpam-x2go.git" (Remote login session via X2Go (PAM module)).
More information about the x2go-commits
mailing list