From 14caf8a8b77cc9de3965cc61d205ef1570d919c6 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber 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