This file is indexed.

/usr/share/pyshared/pygopherd/pipe.py is in pygopherd 2.0.18.3+nmu2.

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
# pygopherd -- Gopher-based protocol server in Python
# module: Execute children in a pipe.
# Copyright (C) 2002 John Goerzen
# <jgoerzen@complete.org>
#
#    This program is free software; you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation; version 2 of the License.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with this program; if not, write to the Free Software
#    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

import os, sys

# Later we will check sys.platform

def pipedata_unix(file, args, environ = os.environ,
                  childstdin = None,
                  childstdout = None,
                  childstderr = None,
                  pathsearch = 0):
    pid = os.fork()
    if pid:
        # Parent.
        return os.waitpid(pid, 0)[1]
    else:
        # Child.
        if childstdin:
            os.dup2(childstdin.fileno(), 0)
        if childstdout:
            os.dup2(childstdout.fileno(), 1)
        if childstderr:
            os.dup2(childstderr.fileno(), 2)
        if pathsearch:
            os.execvpe(file, args, environ)
        else:
            os.execve(file, args, environ)
        sys.exit(255)

pipedata = pipedata_unix