Unverified Commit 53838b01 by Christian Brauner Committed by Stéphane Graber

commands: don't flood logs

We're ignoring commands that we don't know about. They used to be fatal. Not anymore. Closes: #3459. Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent e72336a5
...@@ -1507,7 +1507,7 @@ static int lxc_cmd_process(int fd, struct lxc_cmd_req *req, ...@@ -1507,7 +1507,7 @@ static int lxc_cmd_process(int fd, struct lxc_cmd_req *req,
}; };
if (req->cmd >= LXC_CMD_MAX) if (req->cmd >= LXC_CMD_MAX)
return log_error_errno(-1, ENOENT, "Undefined command id %d", req->cmd); return log_trace_errno(-1, EINVAL, "Invalid command id %d", req->cmd);
return cb[req->cmd](fd, req, handler, descr); return cb[req->cmd](fd, req, handler, descr);
} }
......
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