The branch, master has been updated via d36560b73e98fd3e0cba03fb8c43b8e105ccbb84 (commit) from 62d207adea95518ae3db31cd2938cca32bd4e61b (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 ----------------------------------------------------------------- commit d36560b73e98fd3e0cba03fb8c43b8e105ccbb84 Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Date: Fri Nov 9 16:19:33 2012 +0100 split up hostname and port properly ----------------------------------------------------------------------- Summary of changes: src/x2go-auth-check.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) The diff of changes is: diff --git a/src/x2go-auth-check.c b/src/x2go-auth-check.c index 9e1aba3..505f040 100644 --- a/src/x2go-auth-check.c +++ b/src/x2go-auth-check.c @@ -59,13 +59,22 @@ main (int argc, char * argv[]) char * colonloc = strstr(argv[1], ":"); if (colonloc != NULL) { - /* We've got a port to deal with */ + /* We've got a port to deal with colonloc[0] = '\0'; colonloc++; + */ - long port = strtoul(colonloc, NULL, 10); + char *hostname = strtok( argv[1], ":" ); + long port = strtoul(strtok( argv[1], ":" )); + + // long port = strtoul(colonloc, NULL, 10); + ssh_options_set ( auth_check_ssh_session, SSH_OPTIONS_HOST, &hostname ); ssh_options_set ( auth_check_ssh_session, SSH_OPTIONS_PORT, &port ); + printf ("host: %s\n", hostname); printf ("port: %li\n", port); + } else { + printf ("host: %s\n", argv[1]); + ssh_options_set ( auth_check_ssh_session, SSH_OPTIONS_HOST, &argv[1] ); } printf ("4\n"); 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)).