summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util/nvmutil/nvmutil.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index ce4011c1..c862fa0b 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -2154,6 +2154,9 @@ fsync_dir(const char *path)
#ifdef O_DIRECTORY
| O_DIRECTORY
#endif
+#ifdef O_NOFOLLOW
+ | O_NOFOLLOW
+#endif
);
if (dfd == -1)
goto err_fsync_dir;