aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes
diff options
context:
space:
mode:
authorMelanie Thielker2008-11-27 03:56:21 +0000
committerMelanie Thielker2008-11-27 03:56:21 +0000
commit714ca971d63a06f2e8071e4dad332696c5e012be (patch)
tree0423afbda7149f3b8f363140d75662f7d64e12cd /OpenSim/Region/Environment/Scenes
parentCause the slam bit to be set in transferred inv items (diff)
downloadopensim-SC_OLD-714ca971d63a06f2e8071e4dad332696c5e012be.zip
opensim-SC_OLD-714ca971d63a06f2e8071e4dad332696c5e012be.tar.gz
opensim-SC_OLD-714ca971d63a06f2e8071e4dad332696c5e012be.tar.bz2
opensim-SC_OLD-714ca971d63a06f2e8071e4dad332696c5e012be.tar.xz
Unconditionally set the slam bit oon all object to agent inventory transfers.
Closes a possible exploit with prims containing other prims
Diffstat (limited to 'OpenSim/Region/Environment/Scenes')
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.Inventory.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
index 9f91f37..3e4663d 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
@@ -975,7 +975,7 @@ namespace OpenSim.Region.Environment.Scenes
975 agentItem.InvType = taskItem.InvType; 975 agentItem.InvType = taskItem.InvType;
976 agentItem.Flags = taskItem.Flags; 976 agentItem.Flags = taskItem.Flags;
977 977
978 if ((destAgent != taskItem.OwnerID) && Permissions.PropagatePermissions()) 978 if (Permissions.PropagatePermissions())
979 { 979 {
980 agentItem.BasePermissions = taskItem.NextPermissions; 980 agentItem.BasePermissions = taskItem.NextPermissions;
981 agentItem.CurrentPermissions = taskItem.NextPermissions | 8; 981 agentItem.CurrentPermissions = taskItem.NextPermissions | 8;