diff options
author | Andre Heinecke <aheinecke@intevation.de> | 2018-02-28 16:29:56 +0100 |
---|---|---|
committer | Andre Heinecke <aheinecke@intevation.de> | 2018-02-28 16:33:23 +0100 |
commit | e43844c3b0b9ec93b7f2a88752bcd6b6244aacfb (patch) | |
tree | cc2bf4c637e9106a674da9f6e25b1e55be9f47d4 /tools/gpgconf-comp.c | |
parent | dirmngr: Handle failures related to missing IPv6 gracefully (diff) | |
download | gnupg2-e43844c3b0b9ec93b7f2a88752bcd6b6244aacfb.tar.xz gnupg2-e43844c3b0b9ec93b7f2a88752bcd6b6244aacfb.zip |
gpgconf, w32: Allow UNC paths
* tools/gpgconf-comp.c (get_config_filename): Allow UNC paths.
--
The homedir of GnuPG on Windows can be on a network share
e.g. if %APPDATA% is redirected to a network share. The
file API calls work and GnuPG itself works nicely
with such paths so gpgconf should work with them, too.
GnuPG-Bug-Id: T3818
Signed-off-by: Andre Heinecke <aheinecke@intevation.de>
Diffstat (limited to 'tools/gpgconf-comp.c')
-rw-r--r-- | tools/gpgconf-comp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/gpgconf-comp.c b/tools/gpgconf-comp.c index f705f3ab5..b10b146f4 100644 --- a/tools/gpgconf-comp.c +++ b/tools/gpgconf-comp.c @@ -2076,7 +2076,9 @@ get_config_filename (gc_component_t component, gc_backend_t backend) #elif defined(HAVE_DOSISH_SYSTEM) if (!(filename[0] && filename[1] == ':' - && (filename[2] == '/' || filename[2] == '\\'))) + && (filename[2] == '/' || filename[2] == '\\')) /* x:\ or x:/ */ + && !((filename[0] == '\\' && filename[1] == '\\') + || (filename[0] == '/' && filename[1] == '/'))) /* \\server */ #else if (filename[0] != '/') #endif |