This file is indexed.

/usr/lib/ruby/1.8/migemo-cache.rb is in migemo 0.40-10.

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
26
require 'migemo'
$KCODE="e"
raise if ARGV[0] == nil
dict = ARGV[0]
static_dict = MigemoStaticDict.new(dict)
ARGV.shift

cache  = File.new(dict + ".cache", "w")
index  = File.new(dict + ".cache.idx", "w")

idx = 0
lines = readlines.sort
lines.each do |line|
  pattern = line.chomp!
  $stderr.puts pattern
  next if pattern == ""

  migemo = Migemo.new(static_dict, pattern)
  migemo.optimization = 3
  data = Marshal.dump(migemo.regex_tree)
  output = [pattern.length].pack("N") + pattern + 
    [data.length].pack("N") + data
  cache.print output
  index.print [idx].pack("N")
  idx += output.length
end