summaryrefslogtreecommitdiff
path: root/src/memfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/memfile.c')
-rw-r--r--src/memfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/memfile.c b/src/memfile.c
index 8c41832c2..e1a6b603b 100644
--- a/src/memfile.c
+++ b/src/memfile.c
@@ -1287,7 +1287,7 @@ mf_do_open(mfp, fname, flags)
/*
* try to open the file
*/
- flags |= O_EXTRA;
+ flags |= O_EXTRA | O_NOFOLLOW;
#ifdef WIN32
/* Prevent handle inheritance that cause problems with Cscope
* (swap file may not be deleted if cscope connection was open after