From 9e54fe2c33c7760ff936716cd125c8f00d0f16ef Mon Sep 17 00:00:00 2001 From: lurchi Date: Wed, 3 Jul 2019 22:30:43 +0200 Subject: [PATCH] constructing path now works with SUID_BINARY_PATH = "" --- src/util/os_installation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.25.1