aboutsummaryrefslogtreecommitdiff
path: root/libbb/make_directory.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/make_directory.c')
-rw-r--r--libbb/make_directory.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libbb/make_directory.c b/libbb/make_directory.c
index 9d7323129..db4609e84 100644
--- a/libbb/make_directory.c
+++ b/libbb/make_directory.c
@@ -60,6 +60,14 @@ int bb_make_directory (char *path, long mode, int flags)
60 c = 0; 60 c = 0;
61 61
62 if (flags & FILEUTILS_RECUR) { /* Get the parent. */ 62 if (flags & FILEUTILS_RECUR) { /* Get the parent. */
63#ifdef __MINGW32__
64 /* skip drive letter and initial slashes */
65 if (s == path && *s && s[1] == ':') {
66 s += 2;
67 while (*s == '/')
68 s++;
69 }
70#endif
63 /* Bypass leading non-'/'s and then subsequent '/'s. */ 71 /* Bypass leading non-'/'s and then subsequent '/'s. */
64 while (*s) { 72 while (*s) {
65 if (*s == '/') { 73 if (*s == '/') {