aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-12-29 16:56:48 +0000
committerJustin Clarke Casey2008-12-29 16:56:48 +0000
commit266d0fbaaeac0dad06da98ceda8d19b8f3d732d6 (patch)
tree45f2ad93db485b5144c3fc86662891432c3a877a /OpenSim/Grid
parentRevamp the return logic to close a privilege escalation loophole. (diff)
downloadopensim-SC-266d0fbaaeac0dad06da98ceda8d19b8f3d732d6.zip
opensim-SC-266d0fbaaeac0dad06da98ceda8d19b8f3d732d6.tar.gz
opensim-SC-266d0fbaaeac0dad06da98ceda8d19b8f3d732d6.tar.bz2
opensim-SC-266d0fbaaeac0dad06da98ceda8d19b8f3d732d6.tar.xz
* Apply http://opensimulator.org/mantis/view.php?id=2927 with some changes
* This allows configuration of the assetset and library control file paths to be other than ./inventory/Libraries.xml and ./assets/AssetSets.xml * This is controlled via the LibrariesXMLFile and AssetSetsXMLFile configuration settings in [StandAlone] in OpenSim.ini (in standalone) and via the user and asset config xml files for grid mode * Thanks to SirKimba for the patch
Diffstat (limited to 'OpenSim/Grid')
-rw-r--r--OpenSim/Grid/AssetServer/Main.cs8
-rw-r--r--OpenSim/Grid/UserServer/Main.cs2
2 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Grid/AssetServer/Main.cs b/OpenSim/Grid/AssetServer/Main.cs
index 6d1028b..72300b5 100644
--- a/OpenSim/Grid/AssetServer/Main.cs
+++ b/OpenSim/Grid/AssetServer/Main.cs
@@ -87,8 +87,8 @@ namespace OpenSim.Grid.AssetServer
87 m_log.Info("[ASSET]: Setting up asset DB"); 87 m_log.Info("[ASSET]: Setting up asset DB");
88 setupDB(config); 88 setupDB(config);
89 89
90 m_log.Info("[ASSET]: Loading default asset set.."); 90 m_log.Info("[ASSET]: Loading default asset set from '" + config.AssetSetsLocation + "'");
91 LoadDefaultAssets(); 91 LoadDefaultAssets(config.AssetSetsLocation);
92 92
93 m_log.Info("[ASSET]: Starting HTTP process"); 93 m_log.Info("[ASSET]: Starting HTTP process");
94 m_httpServer = new BaseHttpServer(config.HttpPort); 94 m_httpServer = new BaseHttpServer(config.HttpPort);
@@ -142,9 +142,9 @@ namespace OpenSim.Grid.AssetServer
142 } 142 }
143 } 143 }
144 144
145 public void LoadDefaultAssets() 145 public void LoadDefaultAssets(string pAssetSetsLocation)
146 { 146 {
147 assetLoader.ForEachDefaultXmlAsset(StoreAsset); 147 assetLoader.ForEachDefaultXmlAsset(pAssetSetsLocation, StoreAsset);
148 } 148 }
149 149
150 protected void StoreAsset(AssetBase asset) 150 protected void StoreAsset(AssetBase asset)
diff --git a/OpenSim/Grid/UserServer/Main.cs b/OpenSim/Grid/UserServer/Main.cs
index f688e4c..3246757 100644
--- a/OpenSim/Grid/UserServer/Main.cs
+++ b/OpenSim/Grid/UserServer/Main.cs
@@ -137,7 +137,7 @@ namespace OpenSim.Grid.UserServer
137 protected virtual void StartupLoginService(IInterServiceInventoryServices inventoryService) 137 protected virtual void StartupLoginService(IInterServiceInventoryServices inventoryService)
138 { 138 {
139 m_loginService = new UserLoginService( 139 m_loginService = new UserLoginService(
140 m_userManager, inventoryService, new LibraryRootFolder(), Cfg, Cfg.DefaultStartupMsg); 140 m_userManager, inventoryService, new LibraryRootFolder(Cfg.LibraryXmlfile), Cfg, Cfg.DefaultStartupMsg);
141 } 141 }
142 142
143 protected virtual void AddHttpHandlers() 143 protected virtual void AddHttpHandlers()