This file is indexed.

/usr/lib/ruby/vendor_ruby/fakeredis/command_executor.rb is in ruby-fakeredis 0.5.0-1.

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
25
module FakeRedis
  module CommandExecutor
    def write(command)
      meffod = command.shift.to_s.downcase.to_sym

      if in_multi && !(TRANSACTION_COMMANDS.include? meffod) # queue commands
        queued_commands << [meffod, *command]
        reply = 'QUEUED'
      elsif respond_to?(meffod)
        reply = send(meffod, *command)
      else
        raise Redis::CommandError, "ERR unknown command '#{meffod}'"
      end

      if reply == true
        reply = 1
      elsif reply == false
        reply = 0
      end

      replies << reply
      nil
    end
  end
end