]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
conf: cleanup macros lxc_fill_autodev
authorChristian Brauner <christian.brauner@ubuntu.com>
Fri, 22 Feb 2019 21:04:14 +0000 (22:04 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Fri, 22 Feb 2019 21:04:14 +0000 (22:04 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/conf.c

index a637a0589056e0b97bd8cdb0f0984399c102d042..73489d718dca8fa0a42930b710f1dc3f3603c088 100644 (file)
@@ -1251,7 +1251,7 @@ static int lxc_fill_autodev(const struct lxc_rootfs *rootfs)
                                 */
                                ret = open(path, O_RDONLY | O_CLOEXEC);
                                if (ret >= 0) {
-                                       close(ret);
+                                       close_prot_errno_disarm(ret);
                                        /* Device nodes are fully useable. */
                                        use_mknod = LXC_DEVNODE_OPEN;
                                        continue;