bug-cfengine
[Top][All Lists]
Advanced

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

Bugfix for cfservd.c 2.0.a15


From: Christophe Boyanique
Subject: Bugfix for cfservd.c 2.0.a15
Date: Fri, 30 Nov 2001 13:52:24 +0100
User-agent: Mutt/1.2.5i

Hi there,

Here is a little patch to correct a bug in cfengine 2.0a15.


--- cfservd.c.orig      Thu Nov 15 14:50:59 2001
+++ cfservd.c   Thu Nov 15 14:50:25 2001
@@ -1295,7 +1295,7 @@
  return true;
  }

-      if (strcmp(ip->name,CFD_TERMINATOR) == 0)
+      if (strncmp(ip->name,CFD_TERMINATOR,strlen(CFD_TERMINATOR)) == 0)
  {
  Debug("No classes matched, rejecting....\n");
  ReplyNothing(conn);


In fact, if you run cfrun with no argument, everything is fine, but if
you run it with parameters and if some options (like cfagent path) is
very long; there is a problem while detecting the CFD_TERMINATOR.  


For example:

cfrun -v -d3 -- -- solaris


cfservd ouputs this:

lydien: Host lydien granted access to /tototototo/tatatatata/
  tututututu/titititi/usr/sbin/cfagent
Match classes
RecvSocketStream(8)
    (Concatenated 8 from stream)
Transaction Receive [t 35][]
RecvSocketStream(35)
    (Concatenated 35 from stream)
Got class buffer solaris ---cfXen/gine/cfXen/gine---itititi/usr/
  sbin/cfagent
SplitStringAsItemList(solaris ---cfXen/gine/cfXen/gine---itititi
  /usr/sbin/cfagent, )
Appending [solaris]
Appending [---cfXen/gine/cfXen/gine---itititi/usr/sbin/cfagent]
RecvSocketStream(8)

and waits forever while cfrun outputs:

Transaction Send[t 6][EXEC  154.48 lydien ...]
SendSocketStream(14)
SendSocketStream, tosend 14
SendSocketStream, sent 14
SendTransaction(solaris ---cfXen/gin...,len=35)
Transaction Send[t 35][solaris ---cfXen/gin...]
SendSocketStream(43)
SendSocketStream, tosend 43
SendSocketStream, sent 43
RecvSocketStream(8)

and waits forever too.

-- 
Christophe Boyanique  - Free Software Engineer
http://www.alcove.com AlcĂ´ve: Liberating Software

"Okay, I'm officially freaked out now!" (Woody)



reply via email to

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