From ae2a3d81b6dce0ba2489b706f1feff3bf61521c7 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Fri, 22 Feb 2019 22:04:14 +0100 Subject: [PATCH] conf: cleanup macros lxc_fill_autodev Signed-off-by: Christian Brauner --- src/lxc/conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/conf.c b/src/lxc/conf.c index a637a0589..73489d718 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -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; -- 2.47.2