Debian Codegraph @

debian/patches/singpolyma-0016-trust-keys.patch

raw
1 From 6e82d11a2414edff0b01965fdae501bccfcb79b8 Mon Sep 17 00:00:00 2001
2 From: Stephen Paul Weber <[email protected]>
3 Date: Sun, 24 Apr 2011 15:07:32 -0500
4 Subject: [PATCH 16/18] trust keys
5
6 ---
7 src/core/tools.c | 6 +++---
8 1 file changed, 3 insertions(+), 3 deletions(-)
9
10 --- a/src/core/tools.c
11 +++ b/src/core/tools.c
12 @@ -66,8 +66,8 @@
13 if(write(tmp2_fd, input2, strlen(input2)) < 0) goto pgp_error;
14 }
15
16 - cmd = malloc(sizeof("gpg -u '' --passphrase-fd '' -qo - --batch " \
17 - "--no-tty '' '' 2>/dev/null") \
18 + cmd = malloc(sizeof("gpg -u '' --passphrase-fd '' --trust-model always" \
19 + " -qo - --batch --no-tty '' '' 2>/dev/null") \
20 +strlen(switches)+8+strlen(tmp_path)+ \
21 (tmp2_path ? strlen(tmp2_path) : 0));
22 if(keyid) {
23 @@ -76,7 +76,7 @@
24 strcpy(cmd, "gpg ");
25 }
26 strcat(cmd, switches);
27 - strcat(cmd, " -qo - --batch --no-tty '");
28 + strcat(cmd, " --trust-model always -qo - --batch --no-tty '");
29 strcat(cmd, tmp_path);
30 strcat(cmd, "' ");
31