mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-28 17:01:07 +00:00
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:
parent
612c49e1cd
commit
e9c5dc7ba3
@ -3212,7 +3212,7 @@ int lxc_map_ids(struct lxc_list *idmap, pid_t pid)
|
|||||||
int ret = 0;
|
int ret = 0;
|
||||||
enum idtype type;
|
enum idtype type;
|
||||||
char *buf = NULL, *pos;
|
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()) {
|
if (!use_shadow && geteuid()) {
|
||||||
ERROR("Missing newuidmap/newgidmap");
|
ERROR("Missing newuidmap/newgidmap");
|
||||||
|
Loading…
Reference in New Issue
Block a user