diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-11-05 17:50:13 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-11-05 17:50:13 +0000 |
commit | a7b147036522ec01a420ecd3888080cca68c412d (patch) | |
tree | d3cbfcf2450c4b85a42df4b103aaf364aedc0c99 | |
parent | 3da17928b7320f1fe030f02de1edd8897aad6ac3 (diff) | |
download | gnunet-a7b147036522ec01a420ecd3888080cca68c412d.tar.gz gnunet-a7b147036522ec01a420ecd3888080cca68c412d.zip |
-yet another libexec fix
-rw-r--r-- | src/transport/plugin_transport_wlan.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/transport/plugin_transport_wlan.c b/src/transport/plugin_transport_wlan.c index dd4d99579..5fed7a739 100644 --- a/src/transport/plugin_transport_wlan.c +++ b/src/transport/plugin_transport_wlan.c | |||
@@ -1703,6 +1703,7 @@ libgnunet_plugin_transport_wlan_init (void *cls) | |||
1703 | struct Plugin *plugin; | 1703 | struct Plugin *plugin; |
1704 | char *interface; | 1704 | char *interface; |
1705 | unsigned long long testmode; | 1705 | unsigned long long testmode; |
1706 | char *binary; | ||
1706 | 1707 | ||
1707 | /* check for 'special' mode */ | 1708 | /* check for 'special' mode */ |
1708 | if (NULL == env->receive) | 1709 | if (NULL == env->receive) |
@@ -1730,14 +1731,17 @@ libgnunet_plugin_transport_wlan_init (void *cls) | |||
1730 | "transport-wlan", "TESTMODE"); | 1731 | "transport-wlan", "TESTMODE"); |
1731 | return NULL; | 1732 | return NULL; |
1732 | } | 1733 | } |
1734 | binary = GNUNET_OS_get_libexec_binary_path ("gnunet-helper-transport-wlan"); | ||
1733 | if ( (0 == testmode) && | 1735 | if ( (0 == testmode) && |
1734 | (GNUNET_YES != GNUNET_OS_check_helper_binary ("gnunet-helper-transport-wlan")) ) | 1736 | (GNUNET_YES != GNUNET_OS_check_helper_binary (binary)) ) |
1735 | { | 1737 | { |
1736 | LOG (GNUNET_ERROR_TYPE_ERROR, | 1738 | LOG (GNUNET_ERROR_TYPE_ERROR, |
1737 | _("Helper binary `%s' not SUID, cannot run WLAN transport\n"), | 1739 | _("Helper binary `%s' not SUID, cannot run WLAN transport\n"), |
1738 | "gnunet-helper-transport-wlan"); | 1740 | "gnunet-helper-transport-wlan"); |
1741 | GNUNET_free (binary); | ||
1739 | return NULL; | 1742 | return NULL; |
1740 | } | 1743 | } |
1744 | GNUNET_free (binary); | ||
1741 | if (GNUNET_YES != | 1745 | if (GNUNET_YES != |
1742 | GNUNET_CONFIGURATION_get_value_string | 1746 | GNUNET_CONFIGURATION_get_value_string |
1743 | (env->cfg, "transport-wlan", "INTERFACE", | 1747 | (env->cfg, "transport-wlan", "INTERFACE", |