/usr/lib/ruby/vendor_ruby/net/ssh/ruby_compat.rb is in ruby-net-ssh 1:4.2.0-2ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | require 'thread'
class String
if RUBY_VERSION < "1.9"
def getbyte(index)
self[index]
end
def setbyte(index, c)
self[index] = c
end
end
end
module Net; module SSH
# This class contains miscellaneous patches and workarounds
# for different ruby implementations.
class Compat
def self.io_select(*params)
IO.select(*params)
end
end
end; end
|