From: Christian Grothoff Date: Thu, 14 Jun 2012 09:50:05 +0000 (+0000) Subject: -special treatment for ./binaray-name X-Git-Tag: initial-import-from-subversion-38251~13071 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bd574d549d682de3e5e5390d82c199bb90b10d81;p=oweals%2Fgnunet.git -special treatment for ./binaray-name --- 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 {