From 8cd4763fe1561cb71fe639bfb87d963cdd666632 Mon Sep 17 00:00:00 2001 From: david Date: Mon, 19 Dec 2011 05:16:26 +0000 Subject: [PATCH] Use '\\' in Windows paths. --- nmap-update/nmap-update.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nmap-update/nmap-update.c b/nmap-update/nmap-update.c index 3221148d6..68023c156 100644 --- a/nmap-update/nmap-update.c +++ b/nmap-update/nmap-update.c @@ -34,7 +34,11 @@ #define NMAP_VERSION "5.61TEST2" #define NMAP_DATADIR "/usr/local/share/nmap" +#ifdef WIN32 +#define PATHSEP "\\" +#else #define PATHSEP "/" +#endif static const char *SVN_REPO = "https://svn.nmap.org"; static const char *SVN_DIR = "/updates"; @@ -895,7 +899,11 @@ bail: static int is_pathsep(int c) { +#ifdef WIN32 + return c == '/' || c == '\\'; +#else return c == '/'; +#endif } static char *parent_dir(const char *path)