diff --git a/ntfsprogs/ntfsusermap.c b/ntfsprogs/ntfsusermap.c index b4c41070..d8150fde 100644 --- a/ntfsprogs/ntfsusermap.c +++ b/ntfsprogs/ntfsusermap.c @@ -814,7 +814,12 @@ static boolean outputmap(const char *volume, const char *dir) /* build directory, if not present */ if (stat(fullname,&st) && (errno == ENOENT)) { printf("* Creating directory %s\n", fullname); + #ifdef __CYGWIN__ + // The one-argument mkdir is exclusive to msvcrt.dll. + mkdir(fullname, 777); + #else mkdir(fullname); + #endif } strcat(fullname, DIRSEP);