This file is indexed.

/usr/bin/josm is in josm 0.0.svn9329+dfsg-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
#!/bin/sh
# Simple wrapper script used to start JOSM in Debian
set -e

# First, users preference as defined by $JAVA_HOME. Next, use OpenJDK or Oracle's proprietary JDK.
# Override to a specific one using $JAVACMD
# Let's get the current architecture -- needed for multiarchified Java
ARCH="`dpkg --print-architecture 2> /dev/null || true`"

# If OpenJDK is only available headless, do not try it
if dpkg --get-selections 'openjdk-*-jre' | grep install$ > /dev/null ; then
	JAVA_CMDS="$JAVA_HOME/bin/java"
	JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-8-openjdk/bin/java /usr/lib/jvm/java-8-openjdk-$ARCH/bin/java /usr/lib/jvm/java-8-oracle/bin/java"
	JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-7-openjdk/bin/java /usr/lib/jvm/java-7-openjdk-$ARCH/bin/java /usr/lib/jvm/java-7-oracle/bin/java"
	JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-9-openjdk/bin/java /usr/lib/jvm/java-9-openjdk-$ARCH/bin/java /usr/lib/jvm/java-9-oracle/bin/java"
else
	JAVA_CMDS="$JAVA_HOME/bin/java /usr/bin/java"
	JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-8-oracle/bin/java"
	JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-7-oracle/bin/java"
	JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-9-oracle/bin/java"
fi

JAVA_OPTS="-Djosm.restart=true -Djava.net.useSystemProxies=true $JAVA_OPTS"

if [ -z "${JAVACMD}" ]; then
    for jcmd in $JAVA_CMDS; do
        if [ -x "$jcmd" -a -z "${JAVACMD}" ]; then
            JAVACMD="$jcmd"
            break
        fi
    done
fi

if [ "$JAVACMD" ]; then
    echo "Using $JAVACMD to execute josm." || true
    set +e
    while true; do
        $JAVACMD $JAVA_OPTS -jar /usr/share/josm/josm.jar "$@"
        if [ "z$?" != "z9" ]; then
            break
        fi
        echo ">> restarting josm..."
    done
else
    echo "No valid JVM found to run JOSM." || true
    exit 1
fi