From 6be7389a70b6dd1ecbc39a73a5b54aa584f63de6 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 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);