提交 3d3c8ac4 编写于 作者: M Mark McLoughlin

src/iptables.c: Create directory for saving iptables rules

上级 f90cd4c3
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
......
......@@ -238,6 +238,12 @@ iptRulesSave(iptRules *rules)
#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));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册