Skip to content

Commit

Permalink
commands: send ENOSYS response
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 committed Feb 26, 2021
1 parent 6b6d770 commit 103607f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/lxc/commands.c
Expand Up @@ -1818,6 +1818,16 @@ static int lxc_cmd_rsp_send_enosys(int fd, int id)
return syserrno_set(-ENOSYS, "Invalid command id %d", id);
}

static int lxc_cmd_rsp_send_enosys(int fd, int id)
{
struct lxc_cmd_rsp rsp = {
.ret = -ENOSYS,
};

__lxc_cmd_rsp_send(fd, &rsp);
return syserrno_set(-ENOSYS, "Invalid command id %d", id);
}

static int lxc_cmd_process(int fd, struct lxc_cmd_req *req,
struct lxc_handler *handler,
struct lxc_epoll_descr *descr)
Expand Down

0 comments on commit 103607f

Please sign in to comment.