Fix cloe file

bug/bundler_fix
Artem 2016-12-08 21:28:39 +03:00 committed by GitHub
parent ba9ce3fcfb
commit 9a7c0eb7b6
1 changed files with 1 additions and 0 deletions

View File

@ -337,6 +337,7 @@ class File < Rex::Post::Meterpreter::Extensions::Stdapi::Fs::IO
if ::File.exist?(dest_file) if ::File.exist?(dest_file)
dst_stat = ::File.stat(dest_file) dst_stat = ::File.stat(dest_file)
if src_stat.size == dst_stat.size && src_stat.mtime == dst_stat.mtime if src_stat.size == dst_stat.size && src_stat.mtime == dst_stat.mtime
src_fd.close
return 'skipped' return 'skipped'
end end
end end