]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Fix opening wrong file in suggest_default_idmap 1483/head
authorJohn Chen <johnchen902@gmail.com>
Wed, 22 Mar 2017 03:03:59 +0000 (11:03 +0800)
committerJohn Chen <johnchen902@gmail.com>
Wed, 22 Mar 2017 03:08:47 +0000 (11:08 +0800)
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 55de873d54d5b118b5081010665fedd88f180e35..fc80b01e100751d9d5bc7e06afbfa7a2251a25cd 100644 (file)
@@ -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);