This file is indexed.

/usr/share/games/xpilot-ng/xpngcc/xputil.py is in xpilot-ng-common 1:4.7.3-2.3ubuntu1.

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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import wx
import config

class Process(wx.Process):
	def __init__(self, win, argv):
		wx.Process.__init__(self, win)
		self.Redirect()
		self.win = win
		self.cmd = ' '.join(argv)
		self.pid = None
	def run(self):
		print self.cmd
		self.pid = wx.Execute(self.cmd, wx.EXEC_ASYNC, self)
		if not self.pid:
			wx.MessageDialog(self.win,
							 "Failed to execute command \"%s\". " 
							 % self.cmd,
							 "Error", 
							 wx.OK|wx.ICON_ERROR)
	def kill(self):
		if self.pid:
			wx.Process.Kill(self.pid, wx.SIGINT)
	def OnTerminate(self, pid, status):
		if status:
			wx.MessageDialog(self.win, 
							 "Command \"%s\" exited with error code %d. "
							 % (self.cmd, status),
							 "Error",
							 wx.OK|wx.ICON_ERROR).ShowModal()

class Client(Process):
	def __init__(self, win, prog):
		Process.__init__(self, win, ())
		self.prog = prog
	def join(self, host, port, nick=None):
                if config.is_muted:
                        sound = "no"
                else:
                        sound = "yes"
		if nick:
			self.cmd = "%s -name \"%s\" -port %d -join %s -sound %s" % (self.prog, 
								  nick, port,
                                                                  host, sound)
		else:
			self.cmd = "%s -port %d -join %s -sound %s" % (self.prog, port,
                                        host, sound)
		self.run()