diff options
author | Werner Koch <[email protected]> | 2020-01-17 13:23:13 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2020-01-17 13:24:24 +0000 |
commit | 7f12fb55f9757cd68147eca8f162c85378538405 (patch) | |
tree | 72534e92dc9dbfeb2ccb83b63968e1ff7bc7a9a6 /common/homedir.c | |
parent | gpg: Prefer card key on use in multiple subkeys situation. (diff) | |
download | gnupg-7f12fb55f9757cd68147eca8f162c85378538405.tar.gz gnupg-7f12fb55f9757cd68147eca8f162c85378538405.zip |
gpgconf,w32: Print a warning for a suspicious homedir.
* tools/gpgconf.c (list_dirs): Check whether the homedir has been
taken from the registry.
--
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'common/homedir.c')
-rw-r--r-- | common/homedir.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/homedir.c b/common/homedir.c index 4425d7811..61d3edfb4 100644 --- a/common/homedir.c +++ b/common/homedir.c @@ -305,6 +305,9 @@ default_homedir (void) { char *tmp, *p; + /* This is deprecated; gpgconf --list-dirs prints a + * warning if the homedir has been taken from the + * registry. */ tmp = read_w32_registry_string (NULL, GNUPG_REGISTRY_DIR, "HomeDir"); |