Skip to content

Commit f6a23b4

Browse files
Update tools/mkpasswd.c
Co-authored-by: simbit18 <101105604+simbit18@users.noreply.github.com>
1 parent 33816b2 commit f6a23b4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tools/mkpasswd.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,11 @@ static int mkdir_p(const char *path)
365365
if (*p == '/')
366366
{
367367
*p = '\0';
368+
#ifdef CONFIG_WINDOWS_NATIVE
369+
mkdir(tmp);
370+
#else
368371
mkdir(tmp, 0755);
372+
#endif
369373
*p = '/';
370374
}
371375
}

0 commit comments

Comments
 (0)