[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Recursive copy problem in cygwin
From: |
Trask |
Subject: |
Re: Recursive copy problem in cygwin |
Date: |
Mon, 6 Feb 2006 11:58:08 -0800 |
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