[Top][All Lists]

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

Re: Several Bugs in cfengine 2.0.4?

From: Mark . Burgess
Subject: Re: Several Bugs in cfengine 2.0.4?
Date: Mon, 16 Sep 2002 21:54:45 +0200 (MET DST)

Ah, this is a question of changing assumptions. The solution is
rather to change LINKTO to a local var in 

> #2  0x08075532 in RelativeLink (from=0xbfff7b34 
> "/opt/cfengine-2.0.4/sbin/cfagent", 
>     to=0xbfff6b34 "/opt/CF/ClusterNodes/cfengine-2.0.4/sbin/cfagent", 
> inclusions=0x0, exclusions=0x0, copy=0x0, nofile=0, ptr=0x819e5f0)
>     at /home/src/Build/cfengine-2.0.4_rep/src/link.c:672

Will include patch in next version, or you can apply yourself for now.

{ char *sp, *commonto, *commonfrom;
  char buff[bufsize],linkto[bufsize];
  int levels=0;

if (*to == '.')
   return LinkFiles(from,to,inclusions,exclusions,copy,nofile,ptr);

if (!CompressPath(linkto,to))
   snprintf(OUTPUT,bufsize*2,"Failed to link %s to %s\n",from,to);
   return false;

commonto = linkto;
commonfrom = from;


Work: +47 22453272            Email:  address@hidden
Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark

reply via email to

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