[Bug 260708] Opening /dev/urandom fails with errno=31 (EMLINK)

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 26 Dec 2021 23:48:41 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260708

--- Comment #2 from Jeffrey Walton <noloader@gmail.com> ---
(In reply to Benjamin Takacs from comment #1)

> I don't see why you would set O_NOFOLLOW here.

Some basic hardening.

> As man open states: "[EMLINK] O_NOFOLLOW was specified and the target is a symbolic link."

I believe this is incorrect. I believe the correct error code in this case is
ELOOP. See
https://pubs.opengroup.org/onlinepubs/9699919799/functions/open.html.

-- 
You are receiving this mail because:
You are the assignee for the bug.