]> git.ipfire.org Git - thirdparty/libvirt.git/commit
nwfilter: simplify execution of ebiptables scripts
authorEric Blake <eblake@redhat.com>
Wed, 9 Nov 2011 17:29:57 +0000 (10:29 -0700)
committerEric Blake <eblake@redhat.com>
Thu, 10 Nov 2011 00:10:02 +0000 (17:10 -0700)
commit3b7122c0b24b59ade17dbf72c22dbdfdad89bb08
treed28c97a01dd95c3ed679ee91d5121ef30cd2eab8
parentbd6083c9baf1a8248b3b9fcde0a2c3f44e8e61ad
nwfilter: simplify execution of ebiptables scripts

It's not worth even worrying about a temporary file, unless we
ever expect the script to exceed maximum command-line argument
length limits.

* src/nwfilter/nwfilter_ebiptables_driver.c (ebiptablesExecCLI):
Run the commands as an argument to /bin/sh, rather than worrying
about a temporary file.
(ebiptablesWriteToTempFile): Delete unused function.
src/nwfilter/nwfilter_ebiptables_driver.c