This file is indexed.

/etc/cron.daily/umegaya-fields-stats is in umegaya 1.0.

This file is owned by root:root, with mode 0o755.

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
27
28
29
30
#!/bin/sh

set -e

# Exit if umegaya-adm is not installed.
# Exit code is zero as this script is intended as a cron job.
[ -x /usr/bin/umegaya-adm ]       || exit 0

TMPFILE=$(mktemp -t umegaya-fields-stats.XXXXXXXXXX)

for file in $(grep -rl '^Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/$' /var/lib/umegaya/packages-metadata/*/*.copyright )
do
  grep --only-matching --perl-regexp '^[^\s:]*'  $file |
  sort --ignore-case --unique
done |
  sort --ignore-case |
  uniq --ignore-case --count |
  sort --reverse --numeric-sort > $TMPFILE

TMPFILE_USER=$(stat  --format %u /var/lib/umegaya/)
TMPFILE_GROUP=$(stat --format %g /var/lib/umegaya/)

if [ $(whoami) = "root" ]
then
  chown $TMPFILE_USER:$TMPFILE_GROUP $TMPFILE
  chmod 664 $TMPFILE
fi

cp $TMPFILE /var/lib/umegaya/fields-stats
rm $TMPFILE