diff options
Diffstat (limited to 'block-vvfat.c')
-rw-r--r-- | block-vvfat.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/block-vvfat.c b/block-vvfat.c index b73a6f680f..36f97134d3 100644 --- a/block-vvfat.c +++ b/block-vvfat.c @@ -2351,8 +2351,13 @@ static int handle_renames_and_mkdirs(BDRVVVFATState* s) mapping_t* mapping; int j, parent_path_len; - if (mkdir(commit->path, 0755)) - return -5; +#ifdef __MINGW32__ + if (mkdir(commit->path)) + return -5; +#else + if (mkdir(commit->path, 0755)) + return -5; +#endif mapping = insert_mapping(s, commit->param.mkdir.cluster, commit->param.mkdir.cluster + 1); |