protect-tool-env.patch 957 B

1234567891011121314151617181920212223242526272829
  1. diff -Naur old/agent/protect-tool.c new/agent/protect-tool.c
  2. --- old/agent/protect-tool.c 2012-12-08 13:53:17.067611957 +1100
  3. +++ new/agent/protect-tool.c 2012-12-08 13:53:28.247633012 +1100
  4. @@ -102,6 +102,7 @@
  5. static int opt_status_msg;
  6. static const char *opt_p12_charset;
  7. static const char *opt_agent_program;
  8. +static session_env_t opt_session_env;
  9. static char *get_passphrase (int promptno);
  10. static void release_passphrase (char *pw);
  11. @@ -1040,6 +1041,7 @@
  12. opt_homedir = default_homedir ();
  13. + opt_session_env = session_env_new ();
  14. pargs.argc = &argc;
  15. pargs.argv = &argv;
  16. @@ -1091,7 +1093,7 @@
  17. opt.verbose,
  18. opt_homedir,
  19. opt_agent_program,
  20. - NULL, NULL, NULL);
  21. + NULL, NULL, opt_session_env);
  22. if (opt_prompt)
  23. opt_prompt = percent_plus_unescape (opt_prompt, 0);