This file is indexed.

/usr/share/tdiary/contrib/plugin/jholiday.rb is in tdiary-contrib 5.0.8-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
require 'Calendar.rb'
require 'date'
unless Time::new.respond_to?( :strftime_holiday_backup )
then
 eval( <<-MODIFY_CLASS, TOPLEVEL_BINDING )
  class Time
   alias strftime_holiday_backup strftime
   def strftime( format )
    holiday = ""
    day = Day.new(self.day,self.month,self.year,self.wday)
    holiday = day.holiday_name_jp if day.holiday?
    strftime_holiday_backup( format.gsub( /%K/, holiday ) )
   end
  end
 MODIFY_CLASS
end