mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 02:05:34 +08:00
Prevent an exception when the directory given for XML save is read only
and region config is loaded from the web
This commit is contained in:
@@ -121,6 +121,9 @@ namespace OpenSim.Framework.Configuration.XML
|
||||
|
||||
public void Commit()
|
||||
{
|
||||
if (fileName == null)
|
||||
return;
|
||||
|
||||
if (!Directory.Exists(Util.configDir()))
|
||||
{
|
||||
Directory.CreateDirectory(Util.configDir());
|
||||
|
||||
Reference in New Issue
Block a user