chiark / gitweb /
terminal-util: use getenv_bool for $SYSTEMD_COLORS
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 19 Aug 2016 14:26:27 +0000 (10:26 -0400)
committerSven Eden <yamakuzure@gmx.net>
Wed, 5 Jul 2017 06:50:52 +0000 (08:50 +0200)
commite28a8a014111dbbd4083c0c5790d484001388fbe
tree01d89ffedc0b1775134d8c72e4e9e9a5a1d273ba
parent3a836f9f8143f2f69951d6ca6d47f9937cf43419
terminal-util: use getenv_bool for $SYSTEMD_COLORS

This changes the semantics a bit: before, SYSTEMD_COLORS= would be treated as
"yes", same as SYSTEMD_COLORS=xxx and SYSTEMD_COLORS=1, and only
SYSTEMD_COLORS=0 would be treated as "no". Now, only valid booleans are treated
as "yes". This actually matches how $SYSTEMD_COLORS was announced in NEWS.
src/basic/terminal-util.c