plug-ins: fix build failure on Windows due to incompatible mkdir call in script-fu

On Windows mkdir only accepts one parameter. Fix this by using g_mkdir
which takes care of platform specific details internally.
This commit is contained in:
Jacob Boerema
2021-08-09 18:11:30 -04:00
parent 05403696cb
commit fb099cbf2a

View File

@ -274,7 +274,7 @@ pointer foreign_mkdir(scheme *sc, pointer args)
else
mode = 0777;
retcode = mkdir(dirname, (mode_t)mode);
retcode = g_mkdir(dirname, (mode_t)mode);
if (retcode == 0)
return sc->T;
else