From b2ed6cc2e0f90ed5d62368a7d389479c8f807892 Mon Sep 17 00:00:00 2001 From: John Chen Date: Wed, 22 Mar 2017 11:03:59 +0800 Subject: [PATCH] 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 --- 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 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); -- 2.47.2