summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_getcwd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/compat/linux/linux_getcwd.c')
-rw-r--r--sys/compat/linux/linux_getcwd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_getcwd.c b/sys/compat/linux/linux_getcwd.c
index efc719b..1dfe6b4 100644
--- a/sys/compat/linux/linux_getcwd.c
+++ b/sys/compat/linux/linux_getcwd.c
@@ -164,6 +164,7 @@ linux_getcwd_scandir(lvpp, uvpp, bpp, bufp, td)
cn.cn_nameptr = "..";
cn.cn_namelen = 2;
cn.cn_consume = 0;
+ cn.cn_lkflags = LK_EXCLUSIVE;
/*
* At this point, lvp is locked and will be unlocked by the lookup.
OpenPOWER on IntegriCloud