[lxc-devel] [PATCH] Fix typo to checking newgidmap existing

Stéphane Graber stgraber at ubuntu.com
Thu Mar 13 14:09:29 UTC 2014


On Thu, Mar 13, 2014 at 05:58:43PM +0900, KATOH Yasufumi wrote:
> Signed-off-by: KATOH Yasufumi <karma at jazz.email.ne.jp>

Oops, nice catch!

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

> ---
>  src/lxc/conf.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/lxc/conf.c b/src/lxc/conf.c
> index 4346585..94364ab 100644
> --- a/src/lxc/conf.c
> +++ b/src/lxc/conf.c
> @@ -3212,7 +3212,7 @@ int lxc_map_ids(struct lxc_list *idmap, pid_t pid)
>  	int ret = 0;
>  	enum idtype type;
>  	char *buf = NULL, *pos;
> -	int use_shadow = (on_path("newuidmap") && on_path("newuidmap"));
> +	int use_shadow = (on_path("newuidmap") && on_path("newgidmap"));
>  
>  	if (!use_shadow && geteuid()) {
>  		ERROR("Missing newuidmap/newgidmap");
> -- 
> 1.9.0
> 
> _______________________________________________
> 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: 819 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20140313/b7c06929/attachment.pgp>


More information about the lxc-devel mailing list