diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-02-09 16:00:10 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-02-09 16:00:10 +0900 |
commit | 38e6451f41db54227426835fea3069d721d1a0a5 (patch) | |
tree | aaf6506d5bf0178d9a2561f4f76af6eedf7d1881 /tools/symcryptrun.c | |
parent | 8bffc2850be3e430e7f6faec136d31c6c815f93f (diff) | |
download | gpg2-38e6451f41db54227426835fea3069d721d1a0a5.tar.gz gpg2-38e6451f41db54227426835fea3069d721d1a0a5.tar.bz2 gpg2-38e6451f41db54227426835fea3069d721d1a0a5.zip |
Imported Upstream version 2.1.13upstream/2.1.13
Diffstat (limited to 'tools/symcryptrun.c')
-rw-r--r-- | tools/symcryptrun.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tools/symcryptrun.c b/tools/symcryptrun.c index 4b90cd2..3732b39 100644 --- a/tools/symcryptrun.c +++ b/tools/symcryptrun.c @@ -214,7 +214,7 @@ my_strusage (int level) "Call a simple symmetric encryption tool\n"); break; case 31: p = "\nHome: "; break; - case 32: p = opt.homedir; break; + case 32: p = gnupg_homedir (); break; case 33: p = "\n"; break; default: p = NULL; break; @@ -896,8 +896,6 @@ main (int argc, char **argv) i18n_init(); init_common_subsystems (&argc, &argv); - opt.homedir = default_homedir (); - /* Check whether we have a config file given on the commandline */ orig_argc = argc; orig_argv = argv; @@ -915,11 +913,11 @@ main (int argc, char **argv) else if (pargs.r_opt == oNoOptions) default_config = 0; /* --no-options */ else if (pargs.r_opt == oHomedir) - opt.homedir = pargs.r.ret_str; + gnupg_set_homedir (pargs.r.ret_str); } if (default_config) - configname = make_filename (opt.homedir, "symcryptrun.conf", NULL ); + configname = make_filename (gnupg_homedir (), "symcryptrun.conf", NULL ); argc = orig_argc; argv = orig_argv; @@ -1010,7 +1008,7 @@ main (int argc, char **argv) /* Tell simple-pwquery about the the standard socket name. */ { - char *tmp = make_filename (opt.homedir, GPG_AGENT_SOCK_NAME, NULL); + char *tmp = make_filename (gnupg_socketdir (), GPG_AGENT_SOCK_NAME, NULL); simple_pw_set_socket (tmp); xfree (tmp); } |