mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-05 12:31:50 +01:00
gpgconf: Yet another fix for --apply-profile.
* tools/gpgconf.c (main): Use gnupg_homedir instead of default_homedir. Check for existance of the directory. -- Fixes-commit: 7d95f2e7e7a09e3d433d449b117e3470f9dd38c7 Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
23f1fc766a
commit
e546cc78b7
@ -805,16 +805,16 @@ main (int argc, char **argv)
|
|||||||
es_putc ('\n', es_stderr);
|
es_putc ('\n', es_stderr);
|
||||||
gpgconf_failure (GPG_ERR_USER_2);
|
gpgconf_failure (GPG_ERR_USER_2);
|
||||||
}
|
}
|
||||||
if (!opt.dry_run)
|
if (!opt.dry_run && gnupg_access (gnupg_homedir (), F_OK))
|
||||||
gnupg_maybe_make_homedir (default_homedir (), opt.quiet);
|
gnupg_maybe_make_homedir (gnupg_homedir (), opt.quiet);
|
||||||
gc_component_retrieve_options (-1);
|
gc_component_retrieve_options (-1);
|
||||||
if (gc_process_gpgconf_conf (NULL, 1, 1, NULL))
|
if (gc_process_gpgconf_conf (NULL, 1, 1, NULL))
|
||||||
gpgconf_failure (0);
|
gpgconf_failure (0);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case aApplyProfile:
|
case aApplyProfile:
|
||||||
if (!opt.dry_run)
|
if (!opt.dry_run && gnupg_access (gnupg_homedir (), F_OK))
|
||||||
gnupg_maybe_make_homedir (default_homedir (), opt.quiet);
|
gnupg_maybe_make_homedir (gnupg_homedir (), opt.quiet);
|
||||||
gc_component_retrieve_options (-1);
|
gc_component_retrieve_options (-1);
|
||||||
if (gc_apply_profile (fname))
|
if (gc_apply_profile (fname))
|
||||||
gpgconf_failure (0);
|
gpgconf_failure (0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user