[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r24620 - gnunet/src/util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r24620 - gnunet/src/util |
Date: |
Tue, 30 Oct 2012 22:13:24 +0100 |
Author: grothoff
Date: 2012-10-30 22:13:24 +0100 (Tue, 30 Oct 2012)
New Revision: 24620
Modified:
gnunet/src/util/os_installation.c
Log:
-fix path problem with libexec
Modified: gnunet/src/util/os_installation.c
===================================================================
--- gnunet/src/util/os_installation.c 2012-10-30 21:08:47 UTC (rev 24619)
+++ gnunet/src/util/os_installation.c 2012-10-30 21:13:24 UTC (rev 24620)
@@ -101,6 +101,11 @@
lnk[size] = '\0';
while ((lnk[size] != '/') && (size > 0))
size--;
+ /* test for being in lib/gnunet/libexec/ */
+ if ( (size > strlen ("/gnunet/libexec/")) &&
+ (0 == strcmp ("/gnunet/libexec/",
+ &lnk[size - strlen ("/gnunet/libexec/")])) )
+ size -= strlen ("gnunet/libexec/");
if ((size < 4) || (lnk[size - 4] != '/'))
{
/* not installed in "/bin/" -- binary path probably useless */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r24620 - gnunet/src/util,
gnunet <=