From: John Chen Date: Wed, 22 Mar 2017 03:03:59 +0000 (+0800) Subject: Fix opening wrong file in suggest_default_idmap X-Git-Tag: lxc-1.0.10~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2ed6cc2e0f90ed5d62368a7d389479c8f807892;p=thirdparty%2Flxc.git Fix opening wrong file in suggest_default_idmap Fixing the typo making `suggest_default_idmap` open `subuidfile` instead of `subgidfile` to read subgid information. Signed-off-by: Pochang Chen --- diff --git a/src/lxc/conf.c b/src/lxc/conf.c index 7055a0245..124ff37d1 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -4928,7 +4928,7 @@ void suggest_default_idmap(void) } fclose(f); - f = fopen(subuidfile, "r"); + f = fopen(subgidfile, "r"); if (!f) { ERROR("Your system is not configured with subgids"); free(gname);