diff options
author | Melanie Thielker | 2008-11-27 03:56:21 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-11-27 03:56:21 +0000 |
commit | 714ca971d63a06f2e8071e4dad332696c5e012be (patch) | |
tree | 0423afbda7149f3b8f363140d75662f7d64e12cd /OpenSim/Region | |
parent | Cause the slam bit to be set in transferred inv items (diff) | |
download | opensim-SC-714ca971d63a06f2e8071e4dad332696c5e012be.zip opensim-SC-714ca971d63a06f2e8071e4dad332696c5e012be.tar.gz opensim-SC-714ca971d63a06f2e8071e4dad332696c5e012be.tar.bz2 opensim-SC-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')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.Inventory.cs | 2 |
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; |