Only make parts of the initial filesystem writable
This prevents overwriting the program binary or other sentitive paths like /Data/Static.ini from Lua.
This commit is contained in:
+1
-1
@@ -1006,7 +1006,7 @@ int sm_main(int argc, char* argv[])
|
||||
FILEMAN = new RageFileManager( argv[0] );
|
||||
FILEMAN->MountInitialFilesystems();
|
||||
|
||||
bool bPortable = DoesFileExist("Portable.ini");
|
||||
bool bPortable = DoesFileExist("/Portable.ini");
|
||||
if( !bPortable )
|
||||
FILEMAN->MountUserFilesystems();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user