Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix for rm command

  • Loading branch information...
commit acffec829e082795c6c86d6b04a05275214069b1 1 parent 8479fef
alhazred authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 meta_ssh/lib/rex/post/meta_ssh/extensions/stdapi/fs/file.rb
View
4 meta_ssh/lib/rex/post/meta_ssh/extensions/stdapi/fs/file.rb
@@ -65,7 +65,7 @@ def File.realpath(path, call_fx_realname=true)
#
def File.rm(name)
- resp=client.fs.sftp.remove!(File.realpath(name))
+ resp=client.fs.sftp.remove!(client.fs.file.realpath(name))
return resp
end
@@ -73,7 +73,7 @@ def File.rm(name)
# Performs a delete on the specified file.
#
def File.unlink(name)
- return File.rm(File.realpath(name))
+ rm(name)
end
#
Please sign in to comment.
Something went wrong with that request. Please try again.