diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-06-14 09:50:05 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-06-14 09:50:05 +0000 |
commit | bd574d549d682de3e5e5390d82c199bb90b10d81 (patch) | |
tree | 26378d94797cac3c89af4af62038ab9ce35c43cc /src/util/os_installation.c | |
parent | c8be5196c408bc372a518f3a72a416ad19f598bb (diff) | |
download | gnunet-bd574d549d682de3e5e5390d82c199bb90b10d81.tar.gz gnunet-bd574d549d682de3e5e5390d82c199bb90b10d81.zip |
-special treatment for ./binaray-name
Diffstat (limited to 'src/util/os_installation.c')
-rw-r--r-- | src/util/os_installation.c | 5 |
1 files 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) | |||
461 | char *binaryexe; | 461 | char *binaryexe; |
462 | 462 | ||
463 | GNUNET_asprintf (&binaryexe, "%s.exe", binary); | 463 | GNUNET_asprintf (&binaryexe, "%s.exe", binary); |
464 | if (GNUNET_YES == GNUNET_STRINGS_path_is_absolute (binaryexe, GNUNET_NO, | 464 | if ( (GNUNET_YES == GNUNET_STRINGS_path_is_absolute (binaryexe, GNUNET_NO, |
465 | NULL, NULL)) | 465 | NULL, NULL)) || |
466 | (0 == strncmp (binary, "./", 2)) ) | ||
466 | p = GNUNET_strdup (binaryexe); | 467 | p = GNUNET_strdup (binaryexe); |
467 | else | 468 | else |
468 | { | 469 | { |