/usr/share/GvRng/out.py is in gvrng 4.4-3~deb9u1.
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 | import sys,os
try:
logpath = os.path.join(os.environ["HOMEDRIVE"],os.environ["HOMEPATH"])
except:
# for win 98
logpath = os.environ["TEMP"]
class StdoutCatcher:
def __init__(self):
self.pyoutf = os.path.join(logpath,"gvr_stdout.log")
f = open(self.pyoutf,'w')
f.close()
def write(self, msg):
self.outfile = open(self.pyoutf, 'a')
self.outfile.write(msg)
self.outfile.close()
def flush(self):
return None
class StderrCatcher:
def __init__(self):
self.pyerrf = os.path.join(logpath,"gvr_stderr.log")
f = open(self.pyerrf,'w')
f.close()
def write(self, msg):
self.outfile = open(self.pyerrf, 'a')
self.outfile.write(msg)
self.outfile.close()
def flush(self):
return None
sys.stdout = StdoutCatcher()
sys.stderr = StderrCatcher()
|