This file is indexed.

/usr/bin/vampyr-spatch-wrapper is in undertaker 1.6.1-1.

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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/bin/bash
#
#   vampyr-spatch-wrapper - proxies spatch calls from Kbuild CHECK mechanism
#
# Copyright (C) 2012 Christoph Egger <siccegge@informatik.uni-erlangen.de>
#
# 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, either version 3 of the License, or
# (at your option) any later version.
#
# 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, see <http://www.gnu.org/licenses/>.


if [ "$1" == "--help" ];then
    echo "$0 original_filename preprocessed_filename ..."
    exit 0
fi

if [ "$#" -le 2 ]; then
	echo "$0 original_filename preprocessed_filename ..."
	exit 1
fi

origfile="$1"
shift
newfile="$1"
shift

declare -a args=( "$@" )
declare -a newargs=( )

for (( i = 0; i < ${#args[@]}; i++ )); do
    if [ "${args[$i]}" == "$origfile" ]; then
        newargs=( "${newargs[@]}" "$newfile" );
        found=1
    elif [ "${args[$i]}" == "-isystem" -o "${args[$i]}" == "-include" ]; then
        i=$((i+1))
    elif [ "${args[$i]}" == "-sp_file" ]; then
        newargs=( "${newargs[@]}" "${args[$i]}" );
        i=$((i+1))
        patch="${args[$i]}"
        newargs=( "${newargs[@]}" "${args[$i]}" );
    else
        newargs=( "${newargs[@]}" "${args[$i]}" );
    fi
done

if ! grep -q '^virtual report$' $patch &>/dev/null; then
    exit 0
fi

extraargs="$(sed -n 's,^//[[:space:]]*Options:[[:space:]]*,,gp' $patch)"

if [ "$found" == "1" ] ; then
    ulimit -t 360
    exec spatch "${newargs[@]}" $extraargs
else
    exit 0
fi