From fae5b91f36e94c6959fb72130d5d4de5f9669e30 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Thu, 3 May 2018 10:27:10 +0200 Subject: PAM prompt: rename from "x2gosession" to "remote command". --- tests/mock_pam.c | 4 ++-- tests/test-x2go-auth.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/mock_pam.c b/tests/mock_pam.c index 64c503f..a07c9af 100644 --- a/tests/mock_pam.c +++ b/tests/mock_pam.c @@ -39,8 +39,8 @@ int fake_conv (int num_msg, const struct pam_message **msg, response->resp = strdup ("protocol://rhost/dummy"); else if (strcmp((*msg)->msg, "password:") == 0) response->resp = strdup ("password"); - else if (strcmp((*msg)->msg, "sessiontype:") == 0) - response->resp = strdup ("sessiontype"); + else if (strcmp((*msg)->msg, "remote command:") == 0) + response->resp = strdup ("rcommand"); else return PAM_SYMBOL_ERR; /* leaks... */ diff --git a/tests/test-x2go-auth.c b/tests/test-x2go-auth.c index 592f0c7..affacd7 100644 --- a/tests/test-x2go-auth.c +++ b/tests/test-x2go-auth.c @@ -46,7 +46,7 @@ main (int argc, char * argv[]) } /* Check session type */ - if (strcmp(argv[3], "sessiontype")) { + if (strcmp(argv[3], "rcommand")) { return -1; } -- cgit v1.2.3