Blame SOURCES/gnupg-2.0.18-protect-tool-env.patch
|
|
04fc35 |
diff -u -r gnupg-2.0.18.orig/agent/protect-tool.c gnupg-2.0.18/agent/protect-tool.c
|
|
|
04fc35 |
--- gnupg-2.0.18.orig/agent/protect-tool.c 2011-07-22 14:00:44.000000000 +0200
|
|
|
04fc35 |
+++ gnupg-2.0.18/agent/protect-tool.c 2012-04-10 22:42:17.397613438 +0200
|
|
|
04fc35 |
@@ -102,6 +102,7 @@
|
|
|
04fc35 |
static int opt_status_msg;
|
|
|
04fc35 |
static const char *opt_p12_charset;
|
|
|
04fc35 |
static const char *opt_agent_program;
|
|
|
04fc35 |
+static session_env_t opt_session_env;
|
|
|
04fc35 |
|
|
|
04fc35 |
static char *get_passphrase (int promptno);
|
|
|
04fc35 |
static void release_passphrase (char *pw);
|
|
|
04fc35 |
@@ -1040,6 +1041,7 @@
|
|
|
04fc35 |
|
|
|
04fc35 |
opt_homedir = default_homedir ();
|
|
|
04fc35 |
|
|
|
04fc35 |
+ opt_session_env = session_env_new ();
|
|
|
04fc35 |
|
|
|
04fc35 |
pargs.argc = &arg;;
|
|
|
04fc35 |
pargs.argv = &arg;;
|
|
|
04fc35 |
@@ -1091,7 +1093,7 @@
|
|
|
04fc35 |
opt.verbose,
|
|
|
04fc35 |
opt_homedir,
|
|
|
04fc35 |
opt_agent_program,
|
|
|
04fc35 |
- NULL, NULL, NULL);
|
|
|
04fc35 |
+ NULL, NULL, opt_session_env);
|
|
|
04fc35 |
|
|
|
04fc35 |
if (opt_prompt)
|
|
|
04fc35 |
opt_prompt = percent_plus_unescape (opt_prompt, 0);
|