This file is indexed.

/usr/lib/mate-applets/mate-dock-applet/log_it.py is in mate-dock-applet 0.70-1build1.

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
#!/usr/bin/env python3

import os.path
import time

def log_it(thing, newfile = False):

    """Provide a quick and dirty logging facility

    Args:
        thing   : the string to be written to the log file
        newfile :  boolean - if True the log file is created, if False it is appended to
    """

    filename = os.path.expanduser("~/tmp/log")
    if os.path.isdir(os.path.expanduser("~/tmp")):
        if newfile:
            thefile = open(filename, 'w')
        else:
            thefile = open(filename, 'a')

        thefile.write(time.strftime("%d %b %X: "+ thing + "\n"))
        thefile.close()