]> git.ipfire.org Git - thirdparty/systemd.git/commit
terminal-util: use getenv_bool for $SYSTEMD_COLORS 3987/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 19 Aug 2016 14:26:27 +0000 (10:26 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 19 Aug 2016 15:57:37 +0000 (11:57 -0400)
commitacf553b04d40ccde8098a2bcdebf8245b212d289
tree5c5fda9425cd61fbdd62ae5e77d726bbb22baa25
parent158fbf7661912adf0f42c93155499119811dde82
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.
man/systemd.xml
src/basic/terminal-util.c