Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Aug 2024 15:51:13 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 268436] [libc] syslog() and vsyslog() do not preserve the errno at the time of the call.
Message-ID:  <bug-268436-227-9BH04JxJRK@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-268436-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-268436-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268436

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 caref=
ul
to save errno for this purpose.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-268436-227-9BH04JxJRK>