This file is indexed.

/etc/news/scripts/send-nntp is in inn 1:1.7.2q-45build2.

This file is owned by news:news, 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
#! /bin/sh
##  $Revision: 1.18 $
##  SH script to send NNTP news out.

##  =()<. @<_PATH_SHELLVARS>@>()=
. /usr/lib/news/innshellvars

PROGNAME=`basename $0`
LOG=${MOST_LOGS}/${PROGNAME}.log

##  Go to where the action is, start logging
cd $BATCH
umask 002
DEBUG=""
if [ "X$1" = X-d ] ; then
    DEBUG="-d"
    shift
else
    test ! -f ${LOG} && touch ${LOG}
    chmod 0660 ${LOG}
    exec >>${LOG} 2>&1
fi

echo "${PROGNAME}: [$$] begin `date`"

##  List of sitename:hostname pairs to send to
if [ -n "$1" ] ; then
    LIST="$*"
else
    LIST="site:site.their.domain"
    LIST="${LIST} site2:foo.bar.com"
fi

for L in ${LIST} ; do
    case $L in
    *:*)
	SITE=`expr $L : '\(.*\):.*'`
	HOST=`expr $L : '.*:\(.*\)'`
	;;
    *)
	SITE=$L
	HOST=$L
	;;
    esac
    LOCK=NNTP_LOCK.${HOST}
    BATCHFILE=${HOST}.nntp
    LOCK=${LOCKS}/LOCK.${L}
    trap 'rm -f ${LOCK} ; exit 1' 1 2 3 15
    shlock -p $$ -f ${LOCK} || {
	echo "${PROGNAME}: [$$] ${HOST} locked by `cat ${LOCK}`"
	continue
    }
    if [ -f ${SITE}.work ] ; then
	cat ${SITE}.work >>${BATCHFILE}
	rm -f ${SITE}.work
    fi
    if [ ! -f ${SITE} -o ! -s ${SITE} ] ; then
	if [ ! -f ${BATCHFILE} -o ! -s ${BATCHFILE} ] ; then
	    rm -f ${LOCK}
	    continue
	fi
    fi
    mv ${SITE} ${SITE}.work
    if ctlinnd -s -t30 flush ${SITE} ; then
	cat ${SITE}.work >>${BATCHFILE}
	rm -f ${SITE}.work
	if [ -s ${BATCHFILE} ] ; then
	    echo "${PROGNAME}: [$$] begin ${HOST}"
	    time innxmit ${DEBUG} ${HOST} ${BATCH}/${BATCHFILE}
	    echo "${PROGNAME}: [$$] end   ${HOST}"
	fi
    fi
    rm -f ${LOCK}
done

echo "${PROGNAME}: [$$] end   `date`"