From nobody Wed Sep 25 17:15:22 2024 X-Original-To: dev-commits-src-main@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 4XDNf31Qp1z5XTLT; Wed, 25 Sep 2024 17:15:23 +0000 (UTC) (envelope-from git@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 4XDNf30kGpz4bbQ; Wed, 25 Sep 2024 17:15:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727284523; 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; bh=YhUiJeRGpweO4E3NAzagit1NDeo/Gw/VwpweyKQy3zM=; b=WkpIvBN2a0n+03TMcG+LTmrNkvgy11hwwq99Tk/g3nIVtxYXLfnG3opeQaPFrq+2VbZ5XS O/YKXLvJKQ+D87Yf4UfK+60i+4VIVSnOvYvUQ11J9g0d+jFiLi9dNYDMK+xKJrxCi8IgCE 3kVztUL/z+Cw0mjaWdZYA+zhIsnVaaba533AojBhATApuBsYttzt8y2Imk4CM7t0IQx1Ni RKr3/MxmwJynBzWB40nu2QeNnWo3mLpv0/PMSwHVEwGwCU2BaM8FWhjR89xXG+AGFjEwZ4 G3O4azSX6yrO2J+Xlx9RV+GtidBxd3BQOdlpNsQAIiXTYN8Smps3TMZwuuZnKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727284523; 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; bh=YhUiJeRGpweO4E3NAzagit1NDeo/Gw/VwpweyKQy3zM=; b=XOUD4eSBTHJmE/P9nl048BBOpQOVddEG17PfKBESnS9mHrfibtpjmxG9C+3wCIZhJELWwT fxvooeeMgL9HPtHHOWaN6/Gq/gQDpaho7yb6B9/QEY5ftryHVM++HUxvl9qGYtpkc3ohnC tW2aKr/inUbiI8/10ZIKt7danET1/R+MN7v7cA3dXgt/bC263r74GsH5t5DtDs3F75gwvv hlLmfAAtJRtgYbEnh35RojkE7Wf7HcTCUn/lsekbSWeXycYcdkulzc8h2LmgLHmQj01sMr cPf9kAGhBIaeTrKjl8ejhSj/QgNL2eyR0kV24zluzlo2btLnH+J9T0iB8noKZg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727284523; a=rsa-sha256; cv=none; b=NSfzcSFEUzLoY9E9okgsmIlxZbf6znwrgPGFdumE/Q6qEPUamSFDuEfpORcw1s7JDybvBU i9T626VvK0ldjUNT8n2bBWDLpg2IcsdmgJoZ5+YCzA26fxEdiMDxAxHB2LWtZ9uaoc7R29 HO0iMxVir98fA6SYNY/WtK+ifbk33DUPSqhPDW02G6eAOFjEeWB66DKsfWBJNs4K7fxIWc jMbFIxmJWSc4crgJ4pOwlYPOOZLTNoYrIOqVvWnANp2d4+cg7u4zONRSiBe/ruSp0ag0Ni c1djytlLsO00AnW9Cs7U9pXRKf1mdMva7xtBurHZVE0dqZ0y9xipvavzW8d+yQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XDNf30Kq3zLVx; Wed, 25 Sep 2024 17:15:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 48PHFMMJ047315; Wed, 25 Sep 2024 17:15:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48PHFMnQ047312; Wed, 25 Sep 2024 17:15:22 GMT (envelope-from git) Date: Wed, 25 Sep 2024 17:15:22 GMT Message-Id: <202409251715.48PHFMnQ047312@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?= Subject: git: d2c2d5f4945a - main - stdio: Disable USE_XPRINTF envar. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: des X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d2c2d5f4945a2bf5b03494fb292c9c6a6099241d Auto-Submitted: auto-generated The branch main has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=d2c2d5f4945a2bf5b03494fb292c9c6a6099241d commit d2c2d5f4945a2bf5b03494fb292c9c6a6099241d Author: Dag-Erling Smørgrav AuthorDate: 2024-09-25 17:14:36 +0000 Commit: Dag-Erling Smørgrav CommitDate: 2024-09-25 17:14:55 +0000 stdio: Disable USE_XPRINTF envar. As xprintf has not kept up with our standard printf(3) implementation, it is becoming increasingly dangerous to continue to allow it to take over if USE_XPRINTF is defined. Remove that code, while still allowing applications which know about xprintf to select it. Reviewed by: phk Differential Revision: https://reviews.freebsd.org/D46765 --- lib/libc/stdio/vfprintf.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/libc/stdio/vfprintf.c b/lib/libc/stdio/vfprintf.c index 99ed11c6cb1d..785340ab2a24 100644 --- a/lib/libc/stdio/vfprintf.c +++ b/lib/libc/stdio/vfprintf.c @@ -450,8 +450,6 @@ __vfprintf(FILE *fp, locale_t locale, int serrno, const char *fmt0, va_list ap) val = GETARG (int); \ } - if (__use_xprintf == 0 && getenv("USE_XPRINTF")) - __use_xprintf = 1; if (__use_xprintf > 0) return (__xvprintf(fp, fmt0, ap));