]> git.ipfire.org Git - thirdparty/freeradius-server.git/commit
allow comparisons to print "true" and "false"
authorAlan T. DeKok <aland@freeradius.org>
Thu, 26 May 2022 18:14:54 +0000 (14:14 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 3 Jun 2022 11:15:41 +0000 (07:15 -0400)
commitbc657f171c39e4f5aa93f98011ece89bee49fb1c
tree80a296b071fa3a2752e78151ef45a0c6ff2f5c23
parent9da42fc7d9b05d124eeccdb26198c70b1bd75b6f
allow comparisons to print "true" and "false"

instead of "yes" and "no".

this doesn't *always* work.  A bare

(bool) true

will result in a box of FR_TYPE_BOOL, with no enumv, and will thus
print as "yes".  But we blame value.c for that.
share/dictionary/freeradius/dictionary.freeradius.internal
src/lib/unlang/xlat_eval.c
src/lib/unlang/xlat_expr.c
src/lib/unlang/xlat_priv.h
src/tests/unit/xlat/cond_base.txt
src/tests/unit/xlat/purify.txt