]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
conf: log name of invalid capability in error
authorSotir Danailov <sndanailov@gmail.com>
Wed, 8 Jan 2025 23:05:26 +0000 (00:05 +0100)
committerSotir Danailov <sndanailov@gmail.com>
Wed, 8 Jan 2025 23:05:26 +0000 (00:05 +0100)
Signed-off-by: Sotir Danailov <sndanailov@gmail.com>
src/lxc/confile.c

index 4380fcd79a0ff5b8a434f00ec2f27af383873a3e..1046407b77526d66b07ae8c645b28ba5111c6d62 100644 (file)
@@ -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;