]> git.ipfire.org Git - thirdparty/libvirt.git/commit
nwfilter: use /bin/sh rather than requiring bash
authorEric Blake <eblake@redhat.com>
Sat, 13 Nov 2010 21:48:02 +0000 (14:48 -0700)
committerEric Blake <eblake@redhat.com>
Mon, 15 Nov 2010 23:14:33 +0000 (16:14 -0700)
commit61cdff653ca222f9626bfa378afa2f2b60ac0218
tree4e609f59ee30ef07082a6015aa2a5fb8d0d8d1d5
parente7e595b4f08411bc7451929647ba0c9c73c3d2e7
nwfilter: use /bin/sh rather than requiring bash

* src/nwfilter/nwfilter_ebiptables_driver.c
(ebiptablesWriteToTempFile): Use /bin/sh.
(bash_cmd_path): Delete.
(ebiptablesDriverInit, ebiptablesDriverShutdown): No need to
search for bash.
(CMD_EXEC): Prefer $() over ``, since we can assume POSIX.
(iptablesSetupVirtInPost): Use portable 'test' syntax.
(iptablesLinkIPTablesBaseChain): Use POSIX $(()) syntax.
src/nwfilter/nwfilter_ebiptables_driver.c