]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
cgroups: s/openat()/open_at()/g
authorChristian Brauner <christian.brauner@ubuntu.com>
Wed, 17 Feb 2021 00:05:09 +0000 (01:05 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 17 Feb 2021 00:45:44 +0000 (01:45 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/cgroups/cgfsng.c

index e792132ae4b94719eefb644db0ce03720f066c5b..394d72650337ad5aaf281e3162be037641be3e8e 100644 (file)
@@ -3239,7 +3239,7 @@ static bool __cgfsng_delegate_controllers(struct cgroup_ops *ops, const char *cg
                if (i >= 0) {
                        int fd_next;
 
-                       fd_next = openat(fd_base, parts[i], PROTECT_OPATH_DIRECTORY, PROTECT_LOOKUP_BENEATH);
+                       fd_next = open_at(fd_base, parts[i], PROTECT_OPATH_DIRECTORY, PROTECT_LOOKUP_BENEATH, 0);
                        if (fd_next < 0)
                                return log_error_errno(false, errno, "Failed to open %d(%s)", fd_next, parts[i]);
                        close_prot_errno_move(fd_base, fd_next);