From: lurchi <lurchi@strangeplace.net>
Date: Wed, 3 Jul 2019 20:30:43 +0000 (+0200)
Subject: constructing path now works with SUID_BINARY_PATH = ""
X-Git-Tag: v0.11.6~52
X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9e54fe2c33c7760ff936716cd125c8f00d0f16ef;p=oweals%2Fgnunet.git

constructing path now works with SUID_BINARY_PATH = ""
---

diff --git a/src/util/os_installation.c b/src/util/os_installation.c
index 46f878693..d2ce7fd9b 100644
--- a/src/util/os_installation.c
+++ b/src/util/os_installation.c
@@ -839,7 +839,7 @@ GNUNET_OS_get_suid_binary_path (const struct GNUNET_CONFIGURATION_Handle *cfg,
                                            "PATHS",
                                            "SUID_BINARY_PATH",
                                            &path);
-  if (NULL == path)
+  if (NULL == path || 0 == strlen (path))
     return GNUNET_OS_get_libexec_binary_path (progname);
   path_len = strlen (path);
   GNUNET_asprintf (&binary,