+Thu Feb 7 10:16:42 IST 2008 Mark McLoughlin <markmc@redhat.com>
+
+ * src/iptables.c: Create directory for saving iptables rules
+
Thu Feb 7 10:12:15 IST 2008 Mark McLoughlin <markmc@redhat.com>
* src/xm_internal.[ch]: Move static function prototype from header
#ifdef ENABLE_IPTABLES_LOKKIT
int err;
+ if ((err = virFileMakePath(rules->dir))) {
+ qemudLog(QEMUD_WARN, "Failed to create directory %s : %s",
+ rules->dir, strerror(err));
+ return;
+ }
+
if ((err = writeRules(rules->path, rules->rules, rules->nrules))) {
qemudLog(QEMUD_WARN, "Failed to saves iptables rules to %s : %s",
rules->path, strerror(err));