From 9336b5cce1b6a8ce597880a32a8ec6dd9623b9ed Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 29 Aug 2017 08:56:55 +0000 Subject: Build bug fix for kernel 4.9+ --- src/init/hpr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/init/hpr.c b/src/init/hpr.c index b587dba..db80ba2 100644 --- a/src/init/hpr.c +++ b/src/init/hpr.c @@ -23,7 +23,7 @@ static int test_in_namespace (void) int r ; int fd = open_read("/proc/1/ns/pid") ; if (fd < 0) return 0 ; - r = ioctl(myfd, NS_GET_PARENT) ; + r = ioctl(fd, NS_GET_PARENT) ; close(fd) ; return r >= 0 ; } -- cgit v1.2.3