mirror of
https://github.com/kennethreitz-archive/pyinstaller.git
synced 2026-06-05 23:50:17 +00:00
Fix usage of mkdir() on Windows
git-svn-id: http://svn.pyinstaller.org/trunk@621 8dd32b29-ccff-0310-8a9a-9233e24343b1
This commit is contained in:
@@ -827,7 +827,13 @@ FILE *openTarget(char *path, char* name_)
|
||||
if (!dir)
|
||||
break;
|
||||
if (stat(fnm, &sbuf) < 0)
|
||||
{
|
||||
#ifdef WIN32
|
||||
mkdir(fnm);
|
||||
#else
|
||||
mkdir(fnm, 0700);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
if (stat(fnm, &sbuf) == 0) {
|
||||
|
||||
Reference in New Issue
Block a user