]> git.proxmox.com Git - mirror_lxc.git/commitdiff
commands: don't flood logs
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 25 Jun 2020 14:30:09 +0000 (16:30 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Thu, 25 Jun 2020 14:32:33 +0000 (16:32 +0200)
We're ignoring commands that we don't know about. They used to be fatal. Not
anymore.

Closes: #3459.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/commands.c

index 4c21c752d193f9e3e836005077ee1c8d378279bd..d735b5ff6a734620cf8f95c4b3191db7041f116e 100644 (file)
@@ -1508,7 +1508,7 @@ static int lxc_cmd_process(int fd, struct lxc_cmd_req *req,
        };
 
        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);
 }