1 |
diff --git a/hobbitd/hobbitd_hostdata.c b/hobbitd/hobbitd_hostdata.c |
2 |
index d4a5d0a..95c8879 100644 |
3 |
--- a/hobbitd/hobbitd_hostdata.c |
4 |
+++ b/hobbitd/hobbitd_hostdata.c |
5 |
@@ -11,7 +11,7 @@ |
6 |
/* */ |
7 |
/*----------------------------------------------------------------------------*/ |
8 |
|
9 |
-static char rcsid[] = "$Id: hobbitd_hostdata.c,v 1.5 2006-07-20 16:06:41 henrik Exp $"; |
10 |
+static char rcsid[] = "$Id: hobbitd_hostdata.c 7199 2013-07-23 05:27:30Z storner $"; |
11 |
|
12 |
#include <sys/stat.h> |
13 |
#include <sys/types.h> |
14 |
diff --git a/hobbitd/hobbitd_rrd.c b/hobbitd/hobbitd_rrd.c |
15 |
index deec804..ddcf4dd 100644 |
16 |
--- a/hobbitd/hobbitd_rrd.c |
17 |
+++ b/hobbitd/hobbitd_rrd.c |
18 |
@@ -178,7 +178,7 @@ int main(int argc, char *argv[]) |
19 |
|
20 |
MEMDEFINE(hostdir); |
21 |
|
22 |
- sprintf(hostdir, "%s/%s", rrddir, hostname); |
23 |
+ sprintf(hostdir, "%s/%s", rrddir, basename(hostname)); |
24 |
dropdirectory(hostdir, 1); |
25 |
|
26 |
MEMUNDEFINE(hostdir); |