The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxc/pull/2137

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
Signed-off-by: Christian Brauner <christian.brau...@ubuntu.com>
From f71634fcc97e750bb7bf5b8dcf7dc431efa08476 Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brau...@ubuntu.com>
Date: Wed, 7 Feb 2018 21:06:01 +0100
Subject: [PATCH] tools/lxc-ls: fix logic for unpriv containers

Signed-off-by: Christian Brauner <christian.brau...@ubuntu.com>
---
 src/lxc/tools/lxc_ls.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lxc/tools/lxc_ls.c b/src/lxc/tools/lxc_ls.c
index 6f9719a86..216eb3c47 100644
--- a/src/lxc/tools/lxc_ls.c
+++ b/src/lxc/tools/lxc_ls.c
@@ -506,13 +506,13 @@ static int ls_get(struct ls **m, size_t *size, const 
struct lxc_arguments *args,
                                l->swap = ls_get_swap(c);
 
                                val = c->get_running_config_item(c, 
"lxc.idmap");
-                               l->unprivileged = (val == NULL);
+                               l->unprivileged = !(val == NULL);
                                free(val);
                        } else {
                                int ret;
 
                                ret = c->get_config_item(c, "lxc.idmap", NULL, 
0);
-                               l->unprivileged = (ret == 0);
+                               l->unprivileged = !(ret == 0);
                        }
                }
 
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to