I found a fix -- I don't know if the problem I am having is something
I am causing, but in case it is useful to someone else, here is what I
did:

In src/cf.defs.h, there is a section that looks like this:

--------------------------------------
/* File node separator (cygwin can use \ or / but prefer \ for communicating
 * with native windows commands). */

#ifdef NT
#  define IsFileSep(c) ((c) == '\\' || (c) == '/')
#  define FILE_SEPARATOR '\\'
#  define FILE_SEPARATOR_STR "\\"
#else
#  define IsFileSep(c) ((c) == '/')
#  define FILE_SEPARATOR '/'
#  define FILE_SEPARATOR_STR "/"
#endif
--------------------------------------

I altered the "NT" separators leaving the section looking like this:

#ifdef NT
#  define IsFileSep(c) ((c) == '\\' || (c) == '/')
#  define FILE_SEPARATOR '/'
#  define FILE_SEPARATOR_STR "/"
#else
#  define IsFileSep(c) ((c) == '/')
#  define FILE_SEPARATOR '/'
#  define FILE_SEPARATOR_STR "/"
#endif
--------------------------------------

I did this, plus forced "NT" to be defined in all the source files
that included an "#ifdef NT" directive by adding these lines somewhere
near the top:

#ifndef NT
#define NT
#endif

--------------------------------------

If there is anyone that can collaborate my findings or give me an
explanation of why this happened, I would love to hear it.

~Trask


_______________________________________________
Help-cfengine mailing list
Help-cfengine@gnu.org
http://lists.gnu.org/mailman/listinfo/help-cfengine

Reply via email to