]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
attach: handle new and old clients
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 23 Feb 2021 20:04:41 +0000 (21:04 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 23 Feb 2021 20:11:09 +0000 (21:11 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/attach.c

index b6a0664ca1c783a9159c55ed0c8df5cc2e14074d..9b79158603569669be186817f08fa51970bf3ea2 100644 (file)
@@ -1641,8 +1641,7 @@ int lxc_attach(struct lxc_container *container, lxc_attach_exec_t exec_function,
                ret = cgroup_attach(conf, name, lxcpath, pid);
                if (ret) {
                        call_cleaner(cgroup_exit) struct cgroup_ops *cgroup_ops = NULL;
-
-                       if (ret != -ENOCGROUP2) {
+                       if (ret != -ENOCGROUP2 && ret != -ENOSYS) {
                                SYSERROR("Failed to attach cgroup");
                                goto on_error;
                        }