mirror of
https://github.com/flatpak/flatpak.git
synced 2026-03-14 13:15:35 -04:00
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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user