aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2018-03-18 19:57:54 +0000
committerRon Yorston <rmy@pobox.com>2018-03-18 19:57:54 +0000
commit411d8b4cf9887c108853a25388837c1aaf31edce (patch)
treebd88371b4720d19fe08209a800c8576d46fa44fd /libbb
parent2cbc61ac77a4e661ad97143c3f53db55506d8349 (diff)
downloadbusybox-w32-411d8b4cf9887c108853a25388837c1aaf31edce.tar.gz
busybox-w32-411d8b4cf9887c108853a25388837c1aaf31edce.tar.bz2
busybox-w32-411d8b4cf9887c108853a25388837c1aaf31edce.zip
win32: add a function to convert backslashes to slashes
Diffstat (limited to 'libbb')
-rw-r--r--libbb/make_directory.c6
1 files changed, 1 insertions, 5 deletions
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)
51 org_mask = cur_mask = (mode_t)-1L; 51 org_mask = cur_mask = (mode_t)-1L;
52#if ENABLE_PLATFORM_MINGW32 52#if ENABLE_PLATFORM_MINGW32
53 /* normalise path separators, path is already assumed writable */ 53 /* normalise path separators, path is already assumed writable */
54 for (s=path; *s; ++s) { 54 convert_slashes(path);
55 if (*s == '\\') {
56 *s = '/';
57 }
58 }
59#endif 55#endif
60 s = path; 56 s = path;
61 while (1) { 57 while (1) {