From 19bdeb401606fad7884cca38aa06c19036e48a3f Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 14 Jun 2012 09:51:00 +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 bfc5970fa..34ddd4372 100644 --- a/src/util/os_installation.c +++ b/src/util/os_installation.c @@ -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 { -- 2.25.1