commands: log actual errno when lxc_cmd_get_cgroup2_fd() fails

parent 766c5b6d
......@@ -1328,7 +1328,7 @@ int lxc_cmd_get_cgroup2_fd(const char *name, const char *lxcpath)
return -1;
if (cmd.rsp.ret < 0)
return log_debug_errno(-1, errno, "Failed to receive cgroup2 fd");
return log_debug_errno(cmd.rsp.ret, -cmd.rsp.ret, "Failed to receive cgroup2 fd");
return PTR_TO_INT(cmd.rsp.data);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment