-special treatment for ./binaray-name
[oweals/gnunet.git] / src / util / os_installation.c
index bfc5970fa43d6711e7aaef350375b37e52806fd4..34ddd43729931b472e9b14837e50450c42a6ad2e 100644 (file)
@@ -477,8 +477,9 @@ GNUNET_OS_check_helper_binary (const char *binary)
   }
   GNUNET_free (binaryexe);
 #else
-  if (GNUNET_YES == GNUNET_STRINGS_path_is_absolute (binary, GNUNET_NO,
-      NULL, NULL))
+  if ( (GNUNET_YES == GNUNET_STRINGS_path_is_absolute (binary, GNUNET_NO,
+                                                      NULL, NULL)) ||
+       (0 == strncmp (binary, "./", 2)) )
     p = GNUNET_strdup (binary);
   else
   {