[lxc-devel] [go-lxc/v2] lxc-binding: use correct version check in go_lxc_devpts_fd()

brauner on Github lxc-bot at linuxcontainers.org
Wed Aug 5 14:37:57 UTC 2020


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 366 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200805/67db4b35/attachment.bin>
-------------- next part --------------
From 2b5982a9d88bc6916285d70eb2eecfcb1102f011 Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brauner at ubuntu.com>
Date: Wed, 5 Aug 2020 16:37:06 +0200
Subject: [PATCH] lxc-binding: use correct version check in go_lxc_devpts_fd()

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
---
 lxc-binding.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lxc-binding.c b/lxc-binding.c
index 310e415..cdba32b 100644
--- a/lxc-binding.c
+++ b/lxc-binding.c
@@ -68,7 +68,7 @@ int go_lxc_seccomp_notify_fd(struct lxc_container *c) {
 }
 
 int go_lxc_devpts_fd(struct lxc_container *c) {
-#if VERSION_AT_LEAST(4, 0, 4)
+#if VERSION_AT_LEAST(4, 0, 5)
 	return c->devpts_fd(c);
 #else
 	return ret_errno(ENOSYS);


More information about the lxc-devel mailing list