Package: sysstat
Version: 11.6.1-1
Severity: serious
Justification: global environment variable only used by "sar"

Hi,

according to Debian Policy section "Environment variables", programs
"must not depend on custom environment variable settings to get
reasonable defaults".

I believe S_COLORS=auto from /etc/profile.d/sysstat.sh is such a case;
Policy even mentions /etc/profile.d as something that shouldn't be
used.

Please consider moving the setting to a wrapper like mentioned in that
section so $S_COLOR doesn't pollute the default shell environment.

(On a side note, it's even broken, it only works in login shell
environments, not other shells. Making the sar output depend on being
called by a login shell is certainly a bug on its own.)

Christoph

Reply via email to