From: Dwight Engen Date: Mon, 13 Jan 2014 17:46:55 +0000 (-0500) Subject: fix bug setting autodef in config X-Git-Tag: lxc-1.0.0.beta2~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9fdb6928d8f8d857930dbaa0519e7f6b9337b64;p=thirdparty%2Flxc.git fix bug setting autodef in config Introduced in commit df2d4205. Reported-by: S.Çağlar Onur Signed-off-by: Dwight Engen Acked-by: Stéphane Graber --- diff --git a/src/lxc/confile.c b/src/lxc/confile.c index 50d09dae1..a53d73a23 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -2209,7 +2209,7 @@ void write_config(FILE *fout, struct lxc_conf *c) fprintf(fout, "lxc.seccomp = %s\n", c->seccomp); if (c->kmsg == 0) fprintf(fout, "lxc.kmsg = 0\n"); - if (c->autodev) + if (c->autodev > 0) fprintf(fout, "lxc.autodev = 1\n"); if (c->loglevel != LXC_LOG_PRIORITY_NOTSET) fprintf(fout, "lxc.loglevel = %s\n", lxc_log_priority_to_string(c->loglevel));