Skip to content

Commit

Permalink
call delete implementation from ruby_smb
Browse files Browse the repository at this point in the history
  • Loading branch information
busterb committed Jun 25, 2018
1 parent 3c6d4c2 commit b28e691
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ GEM
rspec-support (3.7.1)
ruby-macho (1.2.0)
ruby-rc4 (0.1.5)
ruby_smb (0.0.24)
ruby_smb (1.0.0)
bindata
rubyntlm
windows_error
Expand Down
6 changes: 5 additions & 1 deletion lib/rex/proto/smb/simpleclient.rb
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,11 @@ def open(path, perm, chunk_size = 48000, read: true, write: false)
end

def delete(*args)
self.client.delete(*args)
if self.versions.include?(2)
self.client.delete(args[0])
else
self.client.delete(*args)
end
end

def create_pipe(path, perm = 'c')
Expand Down

0 comments on commit b28e691

Please sign in to comment.