Skip to content

gfileutils: Fix O_NOFOLLOW handling on BSD systems

Philip Withnall requested to merge wip/pwithnall/bsd-nofollow into master

Various different BSD systems use a different errno from E_LOOP (as defined by POSIX and used on Linux) to indicate that a file is a symlink when you try to open() it with O_NOFOLLOW.

Fix the code which detects this. This is a follow-up to #1302 (closed).

Signed-off-by: Philip Withnall withnall@endlessm.com

Merge request reports