summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-16 21:09:05 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-16 21:09:05 +0000
commitca76a35f934e80781696efe495d8cd136c9bee31 (patch)
tree498723050909601c29f735988544e122a31ee93c /util
parenta6221519650f8b065f50d665e0ef9d683ad66703 (diff)
also O_NOFOLLOW
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util')
-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;