diff options
author | lurchi <lurchi@strangeplace.net> | 2019-07-03 22:30:43 +0200 |
---|---|---|
committer | lurchi <lurchi@strangeplace.net> | 2019-07-03 22:30:43 +0200 |
commit | 9e54fe2c33c7760ff936716cd125c8f00d0f16ef (patch) | |
tree | 0b8bb4814a91ce5bbcdb34b2cbb121f114bb786c /src/util | |
parent | ee19e4da1ce73b50218b8a8ac026b04b9fd44138 (diff) | |
download | gnunet-9e54fe2c33c7760ff936716cd125c8f00d0f16ef.tar.gz gnunet-9e54fe2c33c7760ff936716cd125c8f00d0f16ef.zip |
constructing path now works with SUID_BINARY_PATH = ""
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/os_installation.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
839 | "PATHS", | 839 | "PATHS", |
840 | "SUID_BINARY_PATH", | 840 | "SUID_BINARY_PATH", |
841 | &path); | 841 | &path); |
842 | if (NULL == path) | 842 | if (NULL == path || 0 == strlen (path)) |
843 | return GNUNET_OS_get_libexec_binary_path (progname); | 843 | return GNUNET_OS_get_libexec_binary_path (progname); |
844 | path_len = strlen (path); | 844 | path_len = strlen (path); |
845 | GNUNET_asprintf (&binary, | 845 | GNUNET_asprintf (&binary, |