[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r8185 - GNUnet/src/util/os
From: |
gnunet |
Subject: |
[GNUnet-SVN] r8185 - GNUnet/src/util/os |
Date: |
Tue, 3 Feb 2009 14:31:18 -0700 (MST) |
Author: holindho
Date: 2009-02-03 14:31:18 -0700 (Tue, 03 Feb 2009)
New Revision: 8185
Modified:
GNUnet/src/util/os/installpath.c
Log:
paths are nicer without stacking dir separators
Modified: GNUnet/src/util/os/installpath.c
===================================================================
--- GNUnet/src/util/os/installpath.c 2009-02-03 18:08:27 UTC (rev 8184)
+++ GNUnet/src/util/os/installpath.c 2009-02-03 21:31:18 UTC (rev 8185)
@@ -263,11 +263,13 @@
/* good, strip of '/bin'! */
execpath[n - 3] = '\0';
n -= 3;
+ if (execpath[n - 1] == DIR_SEPARATOR)
+ execpath[--n] = '\0';
}
switch (dirkind)
{
case GNUNET_IPK_PREFIX:
- dirname = "";
+ dirname = DIR_SEPARATOR_STR;
break;
case GNUNET_IPK_BINDIR:
dirname = DIR_SEPARATOR_STR "bin" DIR_SEPARATOR_STR;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r8185 - GNUnet/src/util/os,
gnunet <=