]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
util: don't log failure when older iptables lacks -w
authorEric Blake <eblake@redhat.com>
Wed, 19 Nov 2014 23:18:55 +0000 (16:18 -0700)
committerEric Blake <eblake@redhat.com>
Thu, 20 Nov 2014 13:12:28 +0000 (06:12 -0700)
commit5bc033e293ab85e7da62d8a6523d17ac36919126
treedbaacb28d7b31ad8b90133608387d347d2fcbfaa
parent800454e45ec9ad1ee495bfa7ffe617453f349d3e
util: don't log failure when older iptables lacks -w

Commit dc33e6e4 caused older platforms like Fedora 20 to emit
scary log messages at startup:

2014-11-19 23:12:58.800+0000: 28906: error : virCommandWait:2532 : internal error: Child process (/usr/sbin/iptables -w -L -n) unexpected exit status 2: iptables v1.4.19.1: unknown option "-w"
Try `iptables -h' or 'iptables --help' for more information.

Since we are probing and expect to handle the case where -w is not
supported, we should not let virCommand log it as an error.

* src/util/virfirewall.c (virFirewallCheckUpdateLock): Handle
non-zero status ourselves.

Signed-off-by: Eric Blake <eblake@redhat.com>
src/util/virfirewall.c