From 68a7ac61a00d2189024f14791d77bc03e7ccde98 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Sat, 16 Jul 2016 11:11:36 +0200 Subject: [PATCH] windows: slashize input in path_absolute() (fixes -c option needing forward /) --- src/utils/pathut.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/utils/pathut.cpp b/src/utils/pathut.cpp index 3bca7390..9d39a5ef 100644 --- a/src/utils/pathut.cpp +++ b/src/utils/pathut.cpp @@ -364,6 +364,9 @@ string path_absolute(const string& is) return is; } string s = is; +#ifdef _WIN32 + path_slashize(s); +#endif if (!path_isabsolute(s)) { char buf[MAXPATHLEN]; if (!getcwd(buf, MAXPATHLEN)) {