cf3 (3.0.1b5) cf-serverd incomplete path for VINPUTFILE promises.cf

Matt Richards <[email protected]> Sun, 29 Mar 2009 10:15:00 -0400
Newsgroups gmane.comp.sysutils.cfengine.bugs
Message-ID <[email protected]>
I believe that cf-serverd is not setting VINPUTFILE using the full path of
promises.cf. Consider the following output:

# cf-serverd -v
cf3 Cfengine - autonomous configuration engine - commence self-diagnostic
prelude

...

cf3 Listening for connections ...
cf3 There is no readable input file at promises.cf
cf3 (stat: No such file or directory)
cf3 There is no readable input file at promises.cf
cf3 (stat: No such file or directory)
cf3 There is no readable input file at promises.cf
cf3 (stat: No such file or directory)

.... and so on

In function GenericInitialize (generic_agent.c):

if (!MINUSF)
   {
   snprintf(VINPUTFILE,CF_BUFSIZE-1,'promises.cf");
   }

I think that should be:

if (!MINUSF)
   {
   snprintf(VINPUTFILE,CF_BUFSIZE-1,"%s/inputs/promises.cf",CFWORKDIR);
<<<<<< use the full path
   }


Thanks,
Matt

_______________________________________________
Bug-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/bug-cfengine