Fix undefined constant bug in session.fs.seek
How did this ever work? Clearly nothing exercises this code.
parent
cf18bcc99e
commit
884550ce7c
|
@ -298,14 +298,14 @@ class File < Rex::Post::Meterpreter::Extensions::Stdapi::Fs::IO
|
|||
#
|
||||
# Synonym for sysseek.
|
||||
#
|
||||
def seek(offset, whence = SEEK_SET)
|
||||
def seek(offset, whence = ::IO::SEEK_SET)
|
||||
return self.sysseek(offset, whence)
|
||||
end
|
||||
|
||||
#
|
||||
# Seeks to the supplied offset based on the supplied relativity.
|
||||
#
|
||||
def sysseek(offset, whence = SEEK_SET)
|
||||
def sysseek(offset, whence = ::IO::SEEK_SET)
|
||||
return self.filed.seek(offset, whence)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue