mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
GUSI mkdir() lost its dummy second arg
This commit is contained in:
parent
eb1284be97
commit
3ca6eddb12
1 changed files with 4 additions and 0 deletions
|
@ -361,7 +361,11 @@ mac_mkdir(self, args)
|
||||||
if (!newgetargs(args, "s|i", &path, &mode))
|
if (!newgetargs(args, "s|i", &path, &mode))
|
||||||
return NULL;
|
return NULL;
|
||||||
BGN_SAVE
|
BGN_SAVE
|
||||||
|
#ifdef USE_GUSI
|
||||||
|
res = mkdir(path);
|
||||||
|
#else
|
||||||
res = mkdir(path, mode);
|
res = mkdir(path, mode);
|
||||||
|
#endif
|
||||||
END_SAVE
|
END_SAVE
|
||||||
if (res < 0)
|
if (res < 0)
|
||||||
return mac_error();
|
return mac_error();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue