mirror of
git://github.com/lxc/lxc
synced 2025-08-30 18:49:35 +00:00
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 <johnchen902@gmail.com>
This commit is contained in:
@@ -4560,7 +4560,7 @@ void suggest_default_idmap(void)
|
|||||||
}
|
}
|
||||||
fclose(f);
|
fclose(f);
|
||||||
|
|
||||||
f = fopen(subuidfile, "r");
|
f = fopen(subgidfile, "r");
|
||||||
if (!f) {
|
if (!f) {
|
||||||
ERROR("Your system is not configured with subgids");
|
ERROR("Your system is not configured with subgids");
|
||||||
free(gname);
|
free(gname);
|
||||||
|
Reference in New Issue
Block a user