]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Fix opening wrong file in suggest_default_idmap
authorJohn Chen <johnchen902@gmail.com>
Wed, 22 Mar 2017 03:03:59 +0000 (11:03 +0800)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 22 Mar 2017 05:11:25 +0000 (01:11 -0400)
Fixing the typo making `suggest_default_idmap` open `subuidfile`
instead of `subgidfile` to read subgid information.

Signed-off-by: Pochang Chen <johnchen902@gmail.com>
src/lxc/conf.c

index 7055a0245187ee9bee2739c44b1c26744a28d776..124ff37d1d693e683d0e1a52b4181ecb17977674 100644 (file)
@@ -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);