[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Recursive copy problem in cygwin
From: |
Mark Burgess |
Subject: |
Re: Recursive copy problem in cygwin |
Date: |
Tue, 07 Feb 2006 11:11:33 +0100 |
I don't know of anyone else who has had this problem - can someone else
who uses the cygwin version please tell me if this fix is correct?
Mark
On Mon, 2006-02-06 at 11:58 -0800, Trask wrote:
> 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