bug-cfengine
[Top][All Lists]
Advanced

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

Re: cfengine horror stories


From: Marion Hakanson
Subject: Re: cfengine horror stories
Date: Tue, 03 Dec 2002 18:31:56 -0800

Folks,

While I was perusing source code looking for the cause of the problem
I just mentioned, I ran across the following, in src/install.c, in
the InstallLinkItem() function:

  . . .
  ExpandVarstring(from,VBUFF,"");
  
   if (strlen(VBUFF) > 1)
     {
     DeleteSlash(VBUFF);
     }
  
  ExpandVarstring(to,buffer,"");
  
  if (strlen(VBUFF) > 1)
     { 
     DeleteSlash(buffer);
     }
  . . .


Shouldn't the 2nd "if" clause read as follows?

  . . .
  if (strlen(buffer) > 1)
     { 
     DeleteSlash(buffer);
     }
  . . .


Regards,

-- 
Marion Hakanson <address@hidden>
CSE Computing Facilities






reply via email to

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