]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
fix bug setting autodef in config
authorDwight Engen <dwight.engen@oracle.com>
Mon, 13 Jan 2014 17:46:55 +0000 (12:46 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 13 Jan 2014 17:51:58 +0000 (12:51 -0500)
Introduced in commit df2d4205.

Reported-by: S.Çağlar Onur <caglar@10ur.org>
Signed-off-by: Dwight Engen <dwight.engen@oracle.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/confile.c

index 50d09dae1b09eb25008ada98ec9e281a8835387c..a53d73a2310f859601bfacd474c86b0a0229af4e 100644 (file)
@@ -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));