| 1 |
From 14caf8a8b77cc9de3965cc61d205ef1570d919c6 Mon Sep 17 00:00:00 2001 |
| 2 |
From: Stephen Paul Weber <[email protected]> |
| 3 |
Date: Wed, 18 Mar 2015 11:52:34 -0500 |
| 4 |
Subject: [PATCH 09/10] Make special names actually work |
| 5 |
|
| 6 |
--- |
| 7 |
src/core/tools.c | 4 ++-- |
| 8 |
1 file changed, 2 insertions(+), 2 deletions(-) |
| 9 |
|
| 10 |
diff --git a/src/core/tools.c b/src/core/tools.c |
| 11 |
index fdab05f..2ab3196 100644 |
| 12 |
--- a/src/core/tools.c |
| 13 |
+++ b/src/core/tools.c |
| 14 |
@@ -63,7 +63,7 @@ char *call_gpg_round(char *switches, char *input, char *input2, \ |
| 15 |
|
| 16 |
cmd = malloc(sizeof("gpg --enable-special-filenames -u ''" \ |
| 17 |
"--passphrase-fd '' --trust-model always" \ |
| 18 |
- " -qo - --batch --no-tty - '' -&") \ |
| 19 |
+ " -qo - --batch --no-tty - '' '-&'") \ |
| 20 |
+1+strlen(switches)+ \ |
| 21 |
(keyid ? strlen(keyid) : 0)+ \ |
| 22 |
(send_password ? 5 : 0)+ \ |
| 23 |
@@ -83,7 +83,7 @@ char *call_gpg_round(char *switches, char *input, char *input2, \ |
| 24 |
" --batch --no-tty - "); |
| 25 |
|
| 26 |
if(input2) { |
| 27 |
- sprintf(cmd+strlen(cmd), "-&%d", input2_pipe[0]); |
| 28 |
+ sprintf(cmd+strlen(cmd), "'-&%d'", input2_pipe[0]); |
| 29 |
} |
| 30 |
|
| 31 |
fflush(NULL); |
| 32 |
-- |
| 33 |
2.1.4 |
| 34 |
|