libretro / dosbox-libretro

Port of DOSBox (upstream) to the libretro API.
GNU General Public License v2.0
62 stars 40 forks source link

Some DOS programs cannot save new files (ARM/Linux) #56

Open hooby3dfx opened 7 years ago

hooby3dfx commented 7 years ago

I have noticed that a few DOS games (Warcraft 1, ST TNG: Final Unity) are not able to create save game files.

For example in Warcraft, when you go to save the game and enter a name for the file and hit enter, the game will show an error message. However, if you copy existing save files into the directory, it is possible to read from them, and re-write to them.

This is not reproducible in normal DOSBox on my Windows PC.

I have found this issue on Linux/ARM.

This does not effect all DOS programs though, as installers usually seem to work okay, and other games (Monkey Island) can create save files.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/43436961-some-dos-programs-cannot-save-new-files-arm-linux?utm_campaign=plugin&utm_content=tracker%2F2175333&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F2175333&utm_medium=issues&utm_source=github).
meepingsnesroms commented 7 years ago

This is likely linux permissions getting in the way.

run "chmod -R 777 */dosCdrive"

Then see if it still does it.

hooby3dfx commented 7 years ago

Thanks, but unfortunately that did not work.

hooby3dfx commented 7 years ago

Could this be related to LFN support? LFN was added to this fork here (Sep 23, 2016): https://github.com/libretro/dosbox-libretro/commit/1b35508c1c49a377dbf353906985aa1b395bd361

There are some similar issues with LFN mentioned here: http://www.vogons.org/viewtopic.php?f=41&t=40610&start=80 and http://www.vogons.org/viewtopic.php?f=41&t=40610&start=60

What rev of the LFN branch was merged in? Are there any fixes that could be pulled in? (so annoying when not everything is on github!)

hooby3dfx commented 7 years ago

I just tried to reproduce on Windows/x86_64 but it seems to be working okay.

Will try to test out on another Linux machine.

hooby3dfx commented 7 years ago

Not able to reproduce on OSX either. The plot thickens.

meepingsnesroms commented 7 years ago

Do you have selinux enabled? If you do try with it disabled.

It is not lfn if it works on windows and mac,it is likely an OS security setting.

hooby3dfx commented 7 years ago

I don't think selinux is present in Lakka.

If this were a permissions issue, wouldn't all files fail to write from dosbox?

On Mar 28, 2017 2:08 PM, "meepingsnesroms" notifications@github.com wrote:

Do you have selinux enabled? If you do try with it disabled.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/libretro/dosbox-libretro/issues/56#issuecomment-289856155, or mute the thread https://github.com/notifications/unsubscribe-auth/AAfjGTU27lW2J6_UMirW0GFxTrD02R33ks5rqUy5gaJpZM4MpI8K .

hooby3dfx commented 7 years ago

Just tested this on Lakka (Linux) on x86 - not reproducible.

I think its something specific to ARM.