summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 ;
}