-special treatment for ./binaray-name
authorChristian Grothoff <christian@grothoff.org>
Thu, 14 Jun 2012 09:51:00 +0000 (09:51 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 14 Jun 2012 09:51:00 +0000 (09:51 +0000)
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
   {