This file is indexed.

/usr/bin/lprdvi is in dvi2ps 5.1j-1.2.

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
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
#!/bin/sh
prog=lprdvi	# name of this program
conf=/usr/etc/lprdvi.conf

xorig=72
yorig=72
#fddefault=//fontdesc
fdbikanji="-F //bikanji"
fdbitmap="-F //bitmap"
fdbifont="-F //bifont"
fdbikant1="-F //bikant1"
fdjemb="-F //jemb"
fdemb="-F //jembt1"
fontgen="-F //fonts\$kpse/generate"
dvi2ps=dvi2ps

fontsel=$fdbikant1
printer=${PRINTER-lp}
xcoord=$xorig
ycoord=$yorig
nowarn=0
tmpps=${TMPDIR-/tmp}/LPRdvi-$$.ps
fp=
fontdesc=
d2pop=
quiet=-q
out=
trap "rm -f $tmpps; exit 4" 1 2 3 15

while [ $# -gt 0 ]; do
    case "$1" in
	-P*)
		prin=`echo $1 | sed -e s/-P//`
		if [ -z "$prin" ]; then
			if [ $# -lt 2 ]; then
				echo $prog: -P printer or -Pprinter
				exit 1
			fi
			prin=$2
			shift
		fi
		if [ $prin = "-" ]; then
			out=yes
		else
			printer=$prin
		fi
		;;
	-stdout|-so|-out)
		out=yes
		;;
	-x)
		if [ $# -lt 2 ]; then
			echo $prog: -x xorigin_move
			exit 1
		fi
		xcoord=`expr $xorig + $2`
		shift
		;;
	-y)
		if [ $# -lt 2 ]; then
			echo $prog: -y yorigin_move
			exit 1
		fi
		ycoord=`expr $yorig + $2`
		shift
		;;
	-bikanji|-pk)
		fontsel=$fdbikanji
		;;
	-bitmap)
		fontsel=$fdbitmap
		;;
	-bifont|-psf)
		fontsel=$fdbifont
		;;
	-bikant1|-type1)
		fontsel=$fdbikant1
		;;
	-jemb)
		fontsel=$fdjemb
		;;
	-jemb=*)
		jemb=`echo $1 | sed -e s/-jemb=//`
		if [ "$jemb" ]; then
			fontsel="-Djemb=$jemb $fdjemb"
		else
			fontsel=$fdjemb
		fi
		;;
	-emb)
		fontsel=$fdemb
		;;
	-emb=*)
		jemb=`echo $1 | sed -e s/-emb=//`
		if [ "$jemb" ]; then
			fontsel="-Djemb=$jemb $fdemb"
		else
			fontsel=$fdemb
		fi
		;;
	-90ms)
		fontsel=$fontsel-90ms
		;;
	-fs)
		fontsel="-F //$2"
		shift
		;;
	-fp)
		fp=yes
		;;
	-fd)
		fontdesc="$fontdesc -F $2"
		shift
		;;
	-bothside|-2side|-duplex)
		d2pop="$d2pop -s bothside"
		;;
	-tumble*)
		d2pop="$d2pop -s tumble"
		;;
	-manual)
		d2pop="$d2pop -o manualfeed"
		;;
	-Nowarn)
		nowarn=yes
		;;
	-verb*)
		quiet="-d2"
		;;
	*)
		break
		;;
    esac
    shift
done

# logical printer name to printer spec and lpr option
prline=`sed -e '/^#/d' -e '/^[ 	]*$/d' $conf |\
while read lp prn opt
do
	if [ "$lp" = "$printer" ]; then
		echo "$prn $opt"
		break
	elif [ "$lp" = "*" ]; then
		echo "$prn $opt"
		break
	fi
done`
prname=${prline%% *}
pop=${prline#* }
if [ -z "$prname" ]; then
	prname=$printer
fi
prspec="-F //printer/$prname"

if [ -z "$fontdesc" ]; then
	if [ -z "$fp" ]; then
		fontdesc="$prspec $fontsel $fontgen"
	else
		fontdesc="$prspec"
	fi
fi
dodvi2ps="$dvi2ps $quiet $fontdesc $d2pop"
margin="\"/leftm $xcoord def /topm $ycoord def\""

if [ -z "$out" ]; then
	$dodvi2ps -s "$margin" "$@" > $tmpps
	if [ $? -eq 0 -o \( $? -eq 1 -a $nowarn -eq 0 \) ]; then
		lpr -J dvi2ps -P$printer $pop $tmpps
	fi
	rm -f $tmpps
else
	$dodvi2ps -s "$margin" "$@"
fi