Skip to content

Commit

Permalink
commands: log actual errno when lxc_cmd_get_cgroup2_fd() fails
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner authored and stgraber committed Mar 27, 2020
1 parent 8dca61d commit c82fb6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/commands.c
Expand Up @@ -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);
}
Expand Down

0 comments on commit c82fb6b

Please sign in to comment.