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 8bb1650 commit 20f3261
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/conf.c
Expand Up @@ -4559,7 +4559,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 20f3261

Please sign in to comment.