[git] GnuPG - branch, STABLE-BRANCH-2-2, updated. gnupg-2.2.5-4-ge43844c

by Andre Heinecke cvs at cvs.gnupg.org
Wed Feb 28 16:34:04 CET 2018


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU Privacy Guard".

The branch, STABLE-BRANCH-2-2 has been updated
       via  e43844c3b0b9ec93b7f2a88752bcd6b6244aacfb (commit)
      from  ecfc4db3a2f8bc2652ba4ac4de5ca1cd13bfcbec (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit e43844c3b0b9ec93b7f2a88752bcd6b6244aacfb
Author: Andre Heinecke <aheinecke at intevation.de>
Date:   Wed Feb 28 16:29:56 2018 +0100

    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 at intevation.de>

diff --git a/tools/gpgconf-comp.c b/tools/gpgconf-comp.c
index f705f3a..b10b146 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

-----------------------------------------------------------------------

Summary of changes:
 tools/gpgconf-comp.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
The GNU Privacy Guard
http://git.gnupg.org




More information about the Gnupg-commits mailing list