From bd574d549d682de3e5e5390d82c199bb90b10d81 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 14 Jun 2012 09:50:05 +0000 Subject: [PATCH] -special treatment for ./binaray-name --- src/util/os_installation.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/util/os_installation.c b/src/util/os_installation.c index ef3fb3777..bfc5970fa 100644 --- a/src/util/os_installation.c +++ b/src/util/os_installation.c @@ -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 { -- 2.25.1