Skip to content

Commit 68e9add

Browse files
ncopatridge
authored andcommitted
Fix build on ancient glibc without openat(AT_FDCWD
Fixes: #701
1 parent dc34990 commit 68e9add

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syscall.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ int secure_relative_open(const char *basedir, const char *relpath, int flags, mo
734734
return -1;
735735
}
736736

737-
#if !defined(O_NOFOLLOW) || !defined(O_DIRECTORY)
737+
#if !defined(O_NOFOLLOW) || !defined(O_DIRECTORY) || !defined(AT_FDCWD)
738738
// really old system, all we can do is live with the risks
739739
if (!basedir) {
740740
return open(relpath, flags, mode);

0 commit comments

Comments
 (0)