Skip to content

Commit

Permalink
Use #dup instead of #clone #2
Browse files Browse the repository at this point in the history
  • Loading branch information
cdelafuente-r7 committed Oct 17, 2023
1 parent 5f438f7 commit 0b7a1bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/msf/core/exploit/file_dropper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def allow_no_cleanup
# exploiting).
# @return [void]
def register_dirs_for_cleanup(*dirs)
@dropped_dirs += dirs.map(&:clone)
@dropped_dirs += dirs.map(&:dup)
end

# Singular versions
Expand Down

0 comments on commit 0b7a1bf

Please sign in to comment.