summaryrefslogtreecommitdiff
path: root/src/fontfile/fileio.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fontfile/fileio.c')
-rw-r--r--src/fontfile/fileio.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fontfile/fileio.c b/src/fontfile/fileio.c
index d44cecd..992873a 100644
--- a/src/fontfile/fileio.c
+++ b/src/fontfile/fileio.c
@@ -39,6 +39,9 @@ in this Software without prior written authorization from The Open Group.
#ifndef O_CLOEXEC
#define O_CLOEXEC 0
#endif
+#ifndef O_NOFOLLOW
+#define O_NOFOLLOW 0
+#endif
FontFilePtr
FontFileOpen (const char *name)
@@ -47,7 +50,7 @@ FontFileOpen (const char *name)
int len;
BufFilePtr raw, cooked;
- fd = open (name, O_BINARY|O_CLOEXEC);
+ fd = open (name, O_BINARY|O_CLOEXEC|O_NOFOLLOW);
if (fd < 0)
return 0;
raw = BufFileOpenRead (fd);