From 411d8b4cf9887c108853a25388837c1aaf31edce Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Sun, 18 Mar 2018 19:57:54 +0000 Subject: win32: add a function to convert backslashes to slashes --- libbb/make_directory.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'libbb') diff --git a/libbb/make_directory.c b/libbb/make_directory.c index 1f3aecf40..ef0a8acd8 100644 --- a/libbb/make_directory.c +++ b/libbb/make_directory.c @@ -51,11 +51,7 @@ int FAST_FUNC bb_make_directory(char *path, long mode, int flags) org_mask = cur_mask = (mode_t)-1L; #if ENABLE_PLATFORM_MINGW32 /* normalise path separators, path is already assumed writable */ - for (s=path; *s; ++s) { - if (*s == '\\') { - *s = '/'; - } - } + convert_slashes(path); #endif s = path; while (1) { -- cgit v1.2.3-55-g6feb