This file is indexed.

/usr/lib/fai/get-config-dir-svn is in fai-client 5.3.6ubuntu1.

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
#!/bin/bash

# (c) 2002-2006 Henning Glawe <glaweh@debian.org>

### BEGIN SUBROUTINE INFO
# Provides-Var:
# Requires-Var:    $FAI_CONFIG_SRC $FAI $LOGDIR
# Suggests-Var:
# Short-Description: get $FAI from an svn repository.
### END SUBROUTINE INFO

# matched string: "svn://user@host/svnpath"
protocol=$(expr match "$FAI_CONFIG_SRC" '\([^:]*\)://')
# username may or may not be followed by a password
username=$(expr match "$FAI_CONFIG_SRC" '[^:]*://\([^@:]*\)[^@]*@')
if [ -n "$username" ] ; then
  svnpath=$(expr match "$FAI_CONFIG_SRC" '[^:]*://[^@]\+@\([^[:space:]]\+\)')
  # password definitely is preceded by a username
  password=$(expr match "$FAI_CONFIG_SRC" '[^:]*://[^@:]*:\([^@]*\)@')
  [ -n "$password" ] && pass="--password $password"
else
  svnpath=$(expr match "$FAI_CONFIG_SRC" '[^:]*://\([^[:space:]]\+\)')
fi

case $protocol in
        svn)
                svnurl="svn://$svnpath"
                ;;
        svn+file)
                svnurl="file://$svnpath"
                ;;
        svn+http)
                svnurl="http://$svnpath"
                ;;
        svn+https)
                svnurl="https://$svnpath"
                ;;
        svn+ssh)
    if [ -n "$username" ] ; then
                  svnurl="svn+ssh://$username@$svnpath"
    else
      svnurl=$FAI_CONFIG_SRC
    fi
                ;;
        *)
                echo "get-config-dir-svn: protocol $protocol not implemented"
                exit 1
                ;;
esac

user=
[ -n "$username" ] && user="--username $username"

if [ -d "$FAI/.svn" ] ; then
    if [ `svn info $FAI | grep '^URL:' | awk '{print $2}'` == "$svnurl" ]; then
        echo "Updating SVN in $FAI"
        cd $FAI
        svn up $user $pass | grep -v 'Updated to revision' > $LOGDIR/getconf.log
        task_error 881 ${PIPESTATUS[0]}
    else
        echo "$FAI already contains a svn repository, but it is not from $svnurl!" >&2
        echo "Please delete $FAI manually. Fatal error." >&2
        task_error 883
    fi
else
   echo "Checking out SVN"
   svn co $user $pass $svnurl $FAI | grep -v 'Checked out revision' > $LOGDIR/getconf.log
   task_error 882 ${PIPESTATUS[0]}
fi