Debian Codegraph @

debian/patches/singpolyma-0012-Ask-again-for-password-if-wrong.patch

raw
1 From 56775bd40880cebf0cc9b911d99b184f62e70f21 Mon Sep 17 00:00:00 2001
2 From: Stephen Paul Weber <[email protected]>
3 Date: Sat, 23 Apr 2011 15:04:40 -0500
4 Subject: [PATCH 12/18] Ask again for password if wrong
5
6 ---
7 src/core/tools.c | 6 +++++-
8 1 file changed, 5 insertions(+), 1 deletion(-)
9
10 --- a/src/core/tools.c
11 +++ b/src/core/tools.c
12 @@ -121,7 +121,11 @@
13 strcat(output, buf2);
14 }
15
16 - pclose(cstream); /* TODO: check exit code */
17 + if(pclose(cstream) == 512) { /* TODO: more check exit code */
18 + g_free(pgp_passwd);
19 + pgp_passwd = NULL;
20 + output = call_gpg(switches, input, input2, get_stderr, snip_data);
21 + }
22
23 close(tmp_fd);
24 free(tmp_path);