On Thu, Apr 21, 2005 at 01:42:51PM +0200, user-5709098ff3c3@xymon.invalid wrote:
i tried on my debian linux (okay - debian running as Colinux on
WindowsXP Pro my test environment for hobbit + bb) to pull config
files for the bb client from hobbit server.
I don't get any config files transfered.
Looks like I forgot to put the full path onto the filename when
opening the config file. The patch below should solve that - it will
be in 4.0.3.
Regards,
Henrik
-------------- next part --------------
--- hobbitd/hobbitd.c 2005/04/13 11:27:05 1.140
+++ hobbitd/hobbitd.c 2005/04/22 10:48:55
@@ -1394,11 +1394,13 @@
int get_config(char *fn, conn_t *msg)
{
+ char fullfn[PATH_MAX];
FILE *fd = NULL;
int done = 0;
int n;
- fd = stackfopen(fn, "r");
+ sprintf(fullfn, "%s/etc/%s", xgetenv("BBHOME"), fn);
+ fd = stackfopen(fullfn, "r");
if (fd == NULL) return -1;
*msg->buf = '\0';