Fix typo to checking newgidmap existing

Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
KATOH Yasufumi 2014-03-13 17:58:43 +09:00 committed by Stéphane Graber
parent 612c49e1cd
commit e9c5dc7ba3

View File

@ -3212,7 +3212,7 @@ int lxc_map_ids(struct lxc_list *idmap, pid_t pid)
int ret = 0;
enum idtype type;
char *buf = NULL, *pos;
int use_shadow = (on_path("newuidmap") && on_path("newuidmap"));
int use_shadow = (on_path("newuidmap") && on_path("newgidmap"));
if (!use_shadow && geteuid()) {
ERROR("Missing newuidmap/newgidmap");