Commit b9fdb692 by Dwight Engen Committed by Stéphane Graber

fix bug setting autodef in config

Introduced in commit df2d4205. Reported-by: 's avatarS.Çağlar Onur <caglar@10ur.org> Signed-off-by: 's avatarDwight Engen <dwight.engen@oracle.com> Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent 710bde5e
...@@ -2209,7 +2209,7 @@ void write_config(FILE *fout, struct lxc_conf *c) ...@@ -2209,7 +2209,7 @@ void write_config(FILE *fout, struct lxc_conf *c)
fprintf(fout, "lxc.seccomp = %s\n", c->seccomp); fprintf(fout, "lxc.seccomp = %s\n", c->seccomp);
if (c->kmsg == 0) if (c->kmsg == 0)
fprintf(fout, "lxc.kmsg = 0\n"); fprintf(fout, "lxc.kmsg = 0\n");
if (c->autodev) if (c->autodev > 0)
fprintf(fout, "lxc.autodev = 1\n"); fprintf(fout, "lxc.autodev = 1\n");
if (c->loglevel != LXC_LOG_PRIORITY_NOTSET) if (c->loglevel != LXC_LOG_PRIORITY_NOTSET)
fprintf(fout, "lxc.loglevel = %s\n", lxc_log_priority_to_string(c->loglevel)); fprintf(fout, "lxc.loglevel = %s\n", lxc_log_priority_to_string(c->loglevel));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment