From nobody Thu Aug 29 15:51:13 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Wvm3Q71Tmz5T7MJ for ; Thu, 29 Aug 2024 15:51:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Wvm3Q2Pjvz4ysb for ; Thu, 29 Aug 2024 15:51:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1724946674; a=rsa-sha256; cv=none; b=tzvnSwUmo5D0wj3jvumpdPg1k4ND54kdxFfVE0Px0T8Vw0HaQZiyPQYy4qIiQH2EXFAk0u B/7a0y0Ye3Al9LV3vsxsR5KmZ+drhC+0G3bMpITNZ5o4Xnc7zTeTZhp28rBkQlSidVsxZ3 RNh3k4ltaMo2p7dCmTE4Ml2ySBbKy7BoUJcgM5/wIDj01ECw2WAalaLC1JxtrvIih06Oye n+zs1k/2PQdFUG2mJdCbLoG3bnjMY+CDhkjT0r18/FfnboJeUIa7g8JYe2B08Jg97Wzcd0 u9b7DM36EGsmgGkkxTrNAW6LBYFEOmCJUPiDcVUkx84dtWmYB49zW/DfW469ig== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724946674; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xYhYEAE4zijj8BgUjdKK8CPbgBME9vEsgYMeEs5ipVk=; b=mpw8q1B0P88q8VBMuVHEFLon2n88YRj/UrBHlY6uRxFylbz+yhFifAprHknS/14smYNs43 jXSb/+ovtwv7oniJgYBqNFk9rSjaAaTcZdu1NzqZYeXKjlaBltkim5cvvwV0OlaqukUcVN roGPaX+/Tk7fuSaavgh/dDed5GyOmL4skjhszh1oWSbIaIXT95QVyKkuuqY9wY29lyArIX 1us/+T2uC0tsUtlJhFgJozvEj/rC3FIUKZEipJEUM3ySxQGY7vXMEDPd4ePmYSnAEPZ/rn HV2BIM2cyNTlP5mUsWA5R27a5Jqi6hv59FjDH7yOU9MQJqw1fVKQYOwZpNgCDg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Wvm3P6yyHzNHT for ; Thu, 29 Aug 2024 15:51:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 47TFpDoJ061054 for ; Thu, 29 Aug 2024 15:51:13 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 47TFpDZ9061052 for bugs@FreeBSD.org; Thu, 29 Aug 2024 15:51:13 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f 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. Date: Thu, 29 Aug 2024 15:51:13 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268436 Mark Johnston changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |markj@FreeBSD.org --- Comment #2 from Mark Johnston --- 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.=