projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8be519
)
-special treatment for ./binaray-name
author
Christian Grothoff
<christian@grothoff.org>
Thu, 14 Jun 2012 09:50:05 +0000
(09:50 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Thu, 14 Jun 2012 09:50:05 +0000
(09:50 +0000)
src/util/os_installation.c
patch
|
blob
|
history
diff --git
a/src/util/os_installation.c
b/src/util/os_installation.c
index ef3fb3777a0bb8cbed35204476fbac3acc1d4035..bfc5970fa43d6711e7aaef350375b37e52806fd4 100644
(file)
--- 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
{