From 4c4636830528300d122d2a0b4aa540b61e2e7128 Mon Sep 17 00:00:00 2001 From: Sotir Danailov Date: Thu, 9 Jan 2025 00:05:26 +0100 Subject: [PATCH] conf: log name of invalid capability in error Signed-off-by: Sotir Danailov --- src/lxc/confile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/confile.c b/src/lxc/confile.c index 4380fcd79..1046407b7 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -2468,7 +2468,7 @@ static int add_cap_entry(struct lxc_conf *conf, char *caps, bool keep) ret = parse_cap(token, &cap); if (ret < 0) { if (ret != -2) - return syserror_set(-EINVAL, "Invalid capability specified"); + return syserror_set(-EINVAL, "Invalid capability specified: %s", token); INFO("Ignoring unknown capability \"%s\"", token); continue; -- 2.47.2