Err.... No.

ERRFILE=$HOME/.xsession-errors in /etc/X11/Xsession

Which, BTW already has a truncate:

# truncate ERRFILE if it is too big to avoid disk usage DoS
if [ "`stat -c%s \"$ERRFILE\"`" -gt 500000 ]; then
  T=`mktemp -p "$HOME"`
  tail -c 500000 "$ERRFILE" > "$T" && mv -f "$T" "$ERRFILE" || rm -f "$T"
fi

exec >>"$ERRFILE" 2>&1

That exec is the one I personally modified to:
exec 2>&1 | head -c 5000000 >> "$ERRFILE"

Also other bugs about this exact same problem are in x11-apps

-- 
Request to limit xinit writes to .xsession-errors to some reasonable value, 
such as 10 megs
https://bugs.launchpad.net/bugs/661494
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to