constructing path now works with SUID_BINARY_PATH = ""
authorlurchi <lurchi@strangeplace.net>
Wed, 3 Jul 2019 20:30:43 +0000 (22:30 +0200)
committerlurchi <lurchi@strangeplace.net>
Wed, 3 Jul 2019 20:30:43 +0000 (22:30 +0200)
src/util/os_installation.c

index 46f87869373cf54fc6a7200495c3903478168519..d2ce7fd9bc5037f6e4e549ab6ac0de0dc4f1e3fb 100644 (file)
@@ -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,