Package: irssi-plugin-xmpp / 0.53-1~bpo8+1

singpolyma-0109-Make-special-names-actually-work.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From 14caf8a8b77cc9de3965cc61d205ef1570d919c6 Mon Sep 17 00:00:00 2001
From: Stephen Paul Weber <singpolyma@singpolyma.net>
Date: Wed, 18 Mar 2015 11:52:34 -0500
Subject: [PATCH 09/10] Make special names actually work

---
 src/core/tools.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/core/tools.c b/src/core/tools.c
index fdab05f..2ab3196 100644
--- a/src/core/tools.c
+++ b/src/core/tools.c
@@ -63,7 +63,7 @@ char *call_gpg_round(char *switches, char *input, char *input2, \
 
 	cmd = malloc(sizeof("gpg --enable-special-filenames -u ''" \
 	             "--passphrase-fd '' --trust-model always" \
-	             " -qo - --batch --no-tty - '' -&") \
+	             " -qo - --batch --no-tty - '' '-&'") \
 	             +1+strlen(switches)+ \
 	             (keyid ? strlen(keyid) : 0)+ \
 	             (send_password ? 5 : 0)+ \
@@ -83,7 +83,7 @@ char *call_gpg_round(char *switches, char *input, char *input2, \
 	            " --batch --no-tty - ");
 
 	if(input2) {
-		sprintf(cmd+strlen(cmd), "-&%d", input2_pipe[0]);
+		sprintf(cmd+strlen(cmd), "'-&%d'", input2_pipe[0]);
 	}
 
 	fflush(NULL);
-- 
2.1.4