ifcfg-rh: allow svTrueValue() to accept "0" and "1" values

System Internals / NetworkManager - Jiří Klimeš [redhat.com] - 7 October 2015 06:45 UTC

Some initscripts variables can use "0" or "1" instead of more common "yes", "no", for example REORDER_HDR.

And we also write REORDER_HDR=0|1 in writer.c, so we did not read REODER_HDR correctly.

Fixes: ccea4425048cce8aef5a295c7d09daa6b66f596f

e8257af ifcfg-rh: allow svTrueValue() to accept "0" and "1" values
src/settings/plugins/ifcfg-rh/shvar.c | 10 +-
.../ifcfg-rh/tests/network-scripts/Makefile.am | 1 +
.../network-scripts/ifcfg-test-vlan-reorder-hdr-1 | 7 ++
.../plugins/ifcfg-rh/tests/test-ifcfg-rh.c | 100 ++++++++++++++++++++
4 files changed, 114 insertions(+), 4 deletions(-)

Upstream: cgit.freedesktop.org


  • Share