summaryrefslogtreecommitdiff
path: root/src/init/hpr.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-08-29 08:56:55 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-08-29 08:56:55 +0000
commit9336b5cce1b6a8ce597880a32a8ec6dd9623b9ed (patch)
tree6778e78be1582bd2f3a1db02558a361fd5dcf0c5 /src/init/hpr.c
parent2fd16d2ab699926451d65e36789739a2566ac07c (diff)
downloads6-linux-init-9336b5cce1b6a8ce597880a32a8ec6dd9623b9ed.tar.xz
Build bug fix for kernel 4.9+
Diffstat (limited to 'src/init/hpr.c')
-rw-r--r--src/init/hpr.c2
1 files changed, 1 insertions, 1 deletions
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 ;
}