[lxc-devel] [PATCH] fix bug setting autodef in config

Stéphane Graber stgraber at ubuntu.com
Mon Jan 13 17:51:09 UTC 2014


On Mon, Jan 13, 2014 at 12:46:55PM -0500, Dwight Engen wrote:
> Introduced in commit df2d4205.
> 
> Reported-by: S.Çağlar Onur <caglar at 10ur.org>
> Signed-off-by: Dwight Engen <dwight.engen at oracle.com>

Acked-by: Stéphane Graber <stgraber at ubuntu.com>

> ---
>  src/lxc/confile.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/lxc/confile.c b/src/lxc/confile.c
> index 50d09da..a53d73a 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));
> -- 
> 1.8.3.1
> 
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel

-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20140113/905534f3/attachment.pgp>


More information about the lxc-devel mailing list