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-2.1.0~171^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1483%2Fhead;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 55de873d5..fc80b01e1 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -4560,7 +4560,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);