[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] getting config files via "bb $BBDISP "config file" failes
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] getting config files via "bb $BBDISP "config file" failes
- From: Henrik Stoerner <henrik (at) hswn.dk>
- Date: Fri, 22 Apr 2005 12:54:36 +0200
- References: <9B3C0C86BE46BF499B7B8E10E397F6C014BF06@s2h3118r>
- User-agent: Mutt/1.5.5.1i
On Thu, Apr 21, 2005 at 01:42:51PM +0200, U.Kirbach (at) EnBW.com 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
--- 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';