This file is indexed.

/etc/X11/Xsession.d/05debian-edu-truncate-xerrorlog is in debian-edu-config 1.818+deb8u2.

This file is owned by root:root, with mode 0o644.

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
# This is a -*- shell-script -*- fragment called by /etc/X11/Xsession

trim=true
trimlimit=1048576

if [ true = "$trim" ] ; then
    size=$(stat -c%s "$HOME/.xsession-errors")
    if [ "$size" -ge $trimlimit ] ; then
    # Only trim on each login for now, to see if that is enough.
        cat > "$HOME/.xsession-errors" <<EOF
info: Truncated this file because it was more than $trimlimit bytes
EOF
    fi
else
    # Redirect all errors to /dev/null instead of $ERRFILE
    # (~/.xsession-errors by default), to avoid filling up users home
    # directory with error messages.  Allow the user to disable this by
    # creating ~/.xsession-errors-enable
    if [ ! -f "$HOME/.xsession-errors-enable" ] ; then
        # Report the change to the log file before disabling output to the file
        echo "info: Redirecting xsession messages to /dev/null."
        echo "info: touch '$HOME/.xsession-errors-enable' to disable this."
        exec >> /dev/null 2>&1
    fi
fi