Commit 162a4dd7 authored by Mike Gabriel's avatar Mike Gabriel

debian/patches: Drop 0001_handle-user@corp.net-username-correctly.patch. It is...

debian/patches: Drop 0001_handle-user@corp.net-username-correctly.patch. It is contained in the latest upstream Git snapshot.
parent fd9fc6dc
From 248c9185084e99121ea5e99610384bb3a2c0f803 Mon Sep 17 00:00:00 2001
From: Daryl Poe <daryl.poe@hp.com>
Date: Fri, 15 Aug 2014 15:45:06 -0600
Subject: [PATCH] handle user@corp.net username correctly
---
client/common/cmdline.c | 21 ++++++---------------
1 file changed, 6 insertions(+), 15 deletions(-)
diff --git a/client/common/cmdline.c b/client/common/cmdline.c
index 1162122..3d0cc2d 100644
--- a/client/common/cmdline.c
+++ b/client/common/cmdline.c
@@ -706,21 +706,12 @@ int freerdp_parse_username(char* username, char** user, char** domain)
}
else
{
- p = strchr(username, '@');
-
- if (p)
- {
- length = p - username;
- *user = (char*) malloc(length + 1);
- strncpy(*user, username, length);
- (*user)[length] = '\0';
- *domain = _strdup(&p[1]);
- }
- else
- {
- *user = _strdup(username);
- *domain = NULL;
- }
+ /* Do not break up the name for '@'; both credSSP and the
+ * ClientInfo PDU expect 'user@corp.net' to be transmitted
+ * as username 'user@corp.net', domain empty.
+ */
+ *user = _strdup(username);
+ *domain = NULL;
}
return 0;
--
2.0.4
0001_handle-user@corp.net-username-correctly.patch
1001_hide-internal-symbols.patch
1002_update-pkg-config-file.patch
1003_fix-header-inclusion.patch
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment