mirror of
git://git.gnupg.org/gnupg.git
synced 2025-04-17 15:44:34 +02:00
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>
This commit is contained in:
parent
ecfc4db3a2
commit
e43844c3b0
@ -2076,7 +2076,9 @@ get_config_filename (gc_component_t component, gc_backend_t backend)
|
|||||||
#elif defined(HAVE_DOSISH_SYSTEM)
|
#elif defined(HAVE_DOSISH_SYSTEM)
|
||||||
if (!(filename[0]
|
if (!(filename[0]
|
||||||
&& filename[1] == ':'
|
&& filename[1] == ':'
|
||||||
&& (filename[2] == '/' || filename[2] == '\\')))
|
&& (filename[2] == '/' || filename[2] == '\\')) /* x:\ or x:/ */
|
||||||
|
&& !((filename[0] == '\\' && filename[1] == '\\')
|
||||||
|
|| (filename[0] == '/' && filename[1] == '/'))) /* \\server */
|
||||||
#else
|
#else
|
||||||
if (filename[0] != '/')
|
if (filename[0] != '/')
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user