This file is indexed.

/usr/lib/citadel-server/migrate_aliases.sh is in citadel-server 8.24-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
#!/bin/bash
if test -z "$1"; then
    echo "Usage: $0 mail.aliases"
    exit
fi

CITALIAS=$1
if test -f /etc/aliases; then
# don't work with temp fils, so they can't get hijacked.
# sorry users with megabytes of aliases.
    NLINES=`cat /etc/aliases | \
	sed -e "s; *;;g" \
            -e "s;\t*;;g" | \
	grep -v ^root: | \
	grep -v ^# | \
	sed -e "s;:root;,room_aide;" \
            -e "s;:;,;" |wc -l`
    
    for ((i=1; i <= $NLINES; i++)); do 
	ALIAS=`    cat /etc/aliases | \
	sed -e "s; *;;g" \
            -e "s;\t*;;g" | \
	grep -v ^root: | \
	grep -v ^# | \
	sed -e "s;:root;,room_aide;" \
            -e "s;:;,;" |head -n $i |tail -n 1`
	ORG=`echo $ALIAS|sed "s;,.*;;"`
	if grep "$ORG" "$CITALIAS"; then
	    echo "Ignoring Alias $ORG as its already there"
	else
	    echo "$ALIAS" >>$CITALIAS
	fi
    done
else
    echo "no /etc/aliases found."
fi