Skip to content

Commit

Permalink
Fix opening wrong file in suggest_default_idmap
Browse files Browse the repository at this point in the history
Fixing the typo making `suggest_default_idmap` open `subuidfile`
instead of `subgidfile` to read subgid information.

Signed-off-by: Pochang Chen <johnchen902@gmail.com>
  • Loading branch information
johnchen902 authored and stgraber committed Mar 22, 2017
1 parent 3bd06fd commit b2ed6cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/conf.c
Expand Up @@ -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);
Expand Down

0 comments on commit b2ed6cc

Please sign in to comment.