gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r21993 - gnunet/src/util


From: gnunet
Subject: [GNUnet-SVN] r21993 - gnunet/src/util
Date: Thu, 14 Jun 2012 11:51:00 +0200

Author: grothoff
Date: 2012-06-14 11:51:00 +0200 (Thu, 14 Jun 2012)
New Revision: 21993

Modified:
   gnunet/src/util/os_installation.c
Log:
-special treatment for ./binaray-name

Modified: gnunet/src/util/os_installation.c
===================================================================
--- gnunet/src/util/os_installation.c   2012-06-14 09:50:05 UTC (rev 21992)
+++ gnunet/src/util/os_installation.c   2012-06-14 09:51:00 UTC (rev 21993)
@@ -477,8 +477,9 @@
   }
   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
   {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]