Fix a typo

We were trying to check if O_NOFOLLOW was set here.
(flags & BIT_A) == BIT_B never make sense.
This commit is contained in:
Matthias Clasen
2016-07-25 14:27:14 -04:00
parent e9f4e5de1e
commit 369eab84e7

View File

@@ -348,7 +348,7 @@ validate_fd_common (int fd,
/* Must be O_PATH */
((fd_flags & O_PATH) != O_PATH) ||
/* Must not be O_NOFOLLOW (because we want the target file) */
((fd_flags & O_NOFOLLOW) == O_PATH) ||
((fd_flags & O_NOFOLLOW) == O_NOFOLLOW) ||
/* Must be able to fstat */
fstat (fd, st_buf) < 0 ||
/* Must be a regular file */