-special treatment for ./binaray-name
authorChristian Grothoff <christian@grothoff.org>
Thu, 14 Jun 2012 09:50:05 +0000 (09:50 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 14 Jun 2012 09:50:05 +0000 (09:50 +0000)
src/util/os_installation.c

index ef3fb3777a0bb8cbed35204476fbac3acc1d4035..bfc5970fa43d6711e7aaef350375b37e52806fd4 100644 (file)
@@ -461,8 +461,9 @@ GNUNET_OS_check_helper_binary (const char *binary)
   char *binaryexe;
 
   GNUNET_asprintf (&binaryexe, "%s.exe", binary);
-  if (GNUNET_YES == GNUNET_STRINGS_path_is_absolute (binaryexe, GNUNET_NO,
-      NULL, NULL))
+  if ( (GNUNET_YES == GNUNET_STRINGS_path_is_absolute (binaryexe, GNUNET_NO,
+                                                      NULL, NULL)) ||
+       (0 == strncmp (binary, "./", 2)) )
     p = GNUNET_strdup (binaryexe);
   else
   {