Fix undefined constant bug in session.fs.seek

How did this ever work?  Clearly nothing exercises this code.
James Lee 2012-03-02 14:41:09 -07:00
parent cf18bcc99e
commit 884550ce7c
1 changed files with 2 additions and 2 deletions

View File

@ -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