diff options
author | Melanie | 2009-12-23 21:22:19 +0000 |
---|---|---|
committer | Melanie | 2009-12-23 21:22:19 +0000 |
commit | 6eecbc95e41aa75259e3b27426878c2c191832d8 (patch) | |
tree | bca7dda2195a83462d9fa04a3442b4e993334b44 /OpenSim/Region/CoreModules/Avatar | |
parent | Merge branch 'master' into careminster (diff) | |
parent | Merge branch 'master' of melanie@opensimulator.org:/var/git/opensim (diff) | |
download | opensim-SC_OLD-6eecbc95e41aa75259e3b27426878c2c191832d8.zip opensim-SC_OLD-6eecbc95e41aa75259e3b27426878c2c191832d8.tar.gz opensim-SC_OLD-6eecbc95e41aa75259e3b27426878c2c191832d8.tar.bz2 opensim-SC_OLD-6eecbc95e41aa75259e3b27426878c2c191832d8.tar.xz |
Merge branch 'master' into careminster
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveReadRequest.cs | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveReadRequest.cs b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveReadRequest.cs index b778389..0ced2f9 100644 --- a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveReadRequest.cs +++ b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveReadRequest.cs | |||
@@ -174,7 +174,13 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver | |||
174 | 174 | ||
175 | return nodesLoaded; | 175 | return nodesLoaded; |
176 | } | 176 | } |
177 | 177 | ||
178 | public void Close() | ||
179 | { | ||
180 | if (m_loadStream != null) | ||
181 | m_loadStream.Close(); | ||
182 | } | ||
183 | |||
178 | /// <summary> | 184 | /// <summary> |
179 | /// Replicate the inventory paths in the archive to the user's inventory as necessary. | 185 | /// Replicate the inventory paths in the archive to the user's inventory as necessary. |
180 | /// </summary> | 186 | /// </summary> |
@@ -258,6 +264,11 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver | |||
258 | = rawDirsToCreate[i].LastIndexOf( | 264 | = rawDirsToCreate[i].LastIndexOf( |
259 | ArchiveConstants.INVENTORY_NODE_NAME_COMPONENT_SEPARATOR); | 265 | ArchiveConstants.INVENTORY_NODE_NAME_COMPONENT_SEPARATOR); |
260 | 266 | ||
267 | if (identicalNameIdentifierIndex < 0) | ||
268 | { | ||
269 | i++; | ||
270 | continue; | ||
271 | } | ||
261 | string newFolderName = rawDirsToCreate[i].Remove(identicalNameIdentifierIndex); | 272 | string newFolderName = rawDirsToCreate[i].Remove(identicalNameIdentifierIndex); |
262 | 273 | ||
263 | newFolderName = InventoryArchiveUtils.UnescapeArchivePath(newFolderName); | 274 | newFolderName = InventoryArchiveUtils.UnescapeArchivePath(newFolderName); |