author | Wolfgang Rosenauer <wr@rosenauer.org> |
Tue, 19 Mar 2019 09:49:20 +0100 | |
branch | firefox60 |
changeset 1090 | 554cd9503f75 |
parent 1033 | 51bfdd19b9e9 |
permissions | -rw-r--r-- |
228
9ba8fb8909c4
fix GIO helper app launch (bnc#672903) (mozilla-gio-launch-uri.patch)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
1 |
# HG changeset patch |
9ba8fb8909c4
fix GIO helper app launch (bnc#672903) (mozilla-gio-launch-uri.patch)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
2 |
# User Petr Cerny <pcerny@novell.com> |
541
830e50bbfc79
working Aurora 17.0 build
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
515
diff
changeset
|
3 |
# Parent 7308e4a7c1f769f4bbbc90870b849cadd99495a6 |
1090 | 4 |
# Parent eb453c9206ce11b34633ece0c68e79d3e7124e64 |
228
9ba8fb8909c4
fix GIO helper app launch (bnc#672903) (mozilla-gio-launch-uri.patch)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
5 |
Bug 634334 - call to the ntlm_auth helper fails |
9ba8fb8909c4
fix GIO helper app launch (bnc#672903) (mozilla-gio-launch-uri.patch)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
6 |
|
9ba8fb8909c4
fix GIO helper app launch (bnc#672903) (mozilla-gio-launch-uri.patch)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
7 |
diff --git a/extensions/auth/nsAuthSambaNTLM.cpp b/extensions/auth/nsAuthSambaNTLM.cpp |
9ba8fb8909c4
fix GIO helper app launch (bnc#672903) (mozilla-gio-launch-uri.patch)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
8 |
--- a/extensions/auth/nsAuthSambaNTLM.cpp |
9ba8fb8909c4
fix GIO helper app launch (bnc#672903) (mozilla-gio-launch-uri.patch)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
9 |
+++ b/extensions/auth/nsAuthSambaNTLM.cpp |
1090 | 10 |
@@ -156,17 +156,17 @@ static uint8_t* ExtractMessage(const nsA |
11 |
*aLen = (length / 4) * 3 - numEquals; |
|
12 |
return reinterpret_cast<uint8_t*>(PL_Base64Decode(s, length, nullptr)); |
|
13 |
} |
|
14 |
||
15 |
nsresult nsAuthSambaNTLM::SpawnNTLMAuthHelper() { |
|
16 |
const char* username = PR_GetEnv("USER"); |
|
17 |
if (!username) return NS_ERROR_FAILURE; |
|
228
9ba8fb8909c4
fix GIO helper app launch (bnc#672903) (mozilla-gio-launch-uri.patch)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
18 |
|
1090 | 19 |
- const char* const args[] = {"ntlm_auth", |
20 |
+ const char* const args[] = {"/usr/bin/ntlm_auth", |
|
21 |
"--helper-protocol", |
|
22 |
"ntlmssp-client-1", |
|
23 |
"--use-cached-creds", |
|
24 |
"--username", |
|
25 |
username, |
|
26 |
nullptr}; |
|
228
9ba8fb8909c4
fix GIO helper app launch (bnc#672903) (mozilla-gio-launch-uri.patch)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
27 |
|
1090 | 28 |
bool isOK = SpawnIOChild(const_cast<char* const*>(args), &mChildPID, |