Open Poikilos opened 1 year ago
why a lua MOD script must call "mkdir" ? an I/O operation its so invasive
I can make a patch to affected mods using get_mod_storage
mkdir_patches-vs-mtkit-230820.zip WIP patches (tested and working in our build of trolltest 5.3-dev) mkdir_patches-vs-mtkit-230820.zip If you have trouble patching, read the patches in a text editor. You should be able to make the change by hand if necessary. It uses the following workaround which is common to make mods backward compatible but not require disabling mod security on any minetest that has minetest.mkdir (circa 2015):
if minetest.mkdir then
minetest.mkdir(dir)
else
os.execute('mkdir "'..dir..'"')
end
could we provide a new release of bucket game in downloads? for confortability of users you know it?
OldCoder is testing the patches.
this issue is already fixed with such patches, i will report the rest cos such patch are only for mkdir issue, this i pretty obvious
Fix for 240107 master copy, and patch out of ocsethome (change to player metadata) as well
no_unsafe_calls_ocmkdir_and_ocsethome-vs-bucket_game-master-240106.zip
or
no_unsafe_calls_ocmkdir_and_ocsethome-vs-bucket_game-master-240106.patch
Building trolltest and running bucket_game results in:
Related to:
613
Solutions:
if minetest.mkdir then
): https://github.com/minetest/minetest/issues/3132