[Bug 268436] [libc] syslog() and vsyslog() do not preserve the errno at the time of the call.

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 29 Aug 2024 15:51:13 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268436

Mark Johnston <markj@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |markj@FreeBSD.org

--- Comment #2 from Mark Johnston <markj@FreeBSD.org> ---
Sorry that this PR didn't get any attention when it was submitted.  But, in
general, libc functions will not preserve errno, it's the caller's
responsibility to do so.  Why is syslog() special?

Is this perhaps related to the "%m" specifier?  vsyslog1() is already careful
to save errno for this purpose.

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