]> xenbits.xensource.com Git - libvirt.git/commitdiff
nwfilter: use /bin/sh rather than requiring bash
authorEric Blake <eblake@redhat.com>
Tue, 16 Nov 2010 14:53:32 +0000 (07:53 -0700)
committerEric Blake <eblake@redhat.com>
Tue, 16 Nov 2010 14:53:32 +0000 (07:53 -0700)
* src/nwfilter/nwfilter_ebiptables_driver.c (CMD_EXEC): Fix syntax
error in previous patch.
Reported by Stefan Berger.

src/nwfilter/nwfilter_ebiptables_driver.c

index c3a0d3ea7a3c906e13af79cc03aeb00fb54f11d5..7b2a50509b3dc82ce354fc77d31ded4031b04a37 100644 (file)
@@ -61,7 +61,7 @@
 #define CMD_DEF_PRE  "cmd='"
 #define CMD_DEF_POST "'"
 #define CMD_DEF(X) CMD_DEF_PRE X CMD_DEF_POST
-#define CMD_EXEC   "eval res=\\$(\"${cmd}\")" CMD_SEPARATOR
+#define CMD_EXEC   "eval res=\\$\\(\"${cmd}\"\\)" CMD_SEPARATOR
 #define CMD_STOPONERR(X) \
     X ? "if [ $? -ne 0 ]; then" \
         "  echo \"Failure to execute command '${cmd}'.\";" \