From nobody Mon Oct 21 19:09:31 2024 X-Original-To: dev-commits-src-branches@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 4XXPxl58bSz5Zfhl; Mon, 21 Oct 2024 19:09:31 +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 4XXPxl3WWGz4TKP; Mon, 21 Oct 2024 19:09:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729537771; 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=LCY+9l61FIoy/C+PO0ONgdHtNPZsoXgzBs409osP9kQ=; b=Ee8xmTmfg8UWtrfyIBQ7NdBLdLPXk/jBuwWV9mmBUT2UiZmudSm6MtKsLtj7eUtvEozL/B 4y4yO17j3hCqgaHDX8g+Qk1CN2VlN5qO8v0dUbXcttmUTus+TE3QbnpN45acMEdqhRNKcG e1Z6JtqEfjGEdV9CRGqoCjp/26E3XqQawI9pW2tZ+c2iiTgB8LvxhtmKi9NGu+I0E203OB SwizajKbwKUq7/lP3kvi5nFLOlLEEjxniaw2r7IJen6RUTy2kbJsuZMCQPuR/zA5MrjdVK MAj8oBiO/3Klpn+MMlskeMIz1UZvQoVHHAOgIOaEfQTzUow76rTmdPZ1JrRlBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729537771; 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=LCY+9l61FIoy/C+PO0ONgdHtNPZsoXgzBs409osP9kQ=; b=vVU+YiHWCzL1+EjGQ0nOp3FPw+CI8F0ZUdznOdkem39Lk4zl2kbC5YnyHdZoUxpV9snotU /pM/cWvdWgCOKmeJtaEEnOkWDkbIDjjvOGQa1RjvQW4ETl0CpadgANyVLXUOP9MQH/dSCX xYPKMKmQF0XuhEUC/Ss1DZzBpFPNHxwXMNOcAklX2f+Aejhu5eAB4hTsXnFaOTejNHGTTH IjWBBkovjorhsq+9dwoPKvrHkQRtm/WPSonLppDO+TG4hquUVuaVB/9QincPcrMO82diIW WOpCTLunGZYOr8Yfvp0E1sq4bduI17/cSLl5qfyPd/ScNy92t6a9ppJ7I310Ew== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729537771; a=rsa-sha256; cv=none; b=vH94qFUqSmnHvuVDhUbGVKM4eHRh2LAMqMTzSnOYvdxcUAZfbGfNZ9S3Plo6abe19bSqOm mzbRCbZb+YtnEEfDJpCSoEkOFHLRVhbI/Yl6hpy+44deZd9fMJqARUAsJoJNHY9HaJQpYc uEtFNcFt7Lve90TxEsClJucDVNnz9zBDGxFnehQuZxsGE8dIYMWVSYNOkQvYksi6+iCqpw tXZT0TX1p/LEFBguAj/lumSvcxdFeJE1dd+k75ZNdqz/Ki5Gy1Tfq5/C/EFgpQq7ugKss8 ZNaQUrNNgJiiUdgb8B44JALtXqAnSe+qEuKJj/PG+dLFgAOcgx9m8xkuZhol/A== 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 4XXPxl2hgSzhqS; Mon, 21 Oct 2024 19:09:31 +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 49LJ9Vw7093768; Mon, 21 Oct 2024 19:09:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49LJ9V6r093765; Mon, 21 Oct 2024 19:09:31 GMT (envelope-from git) Date: Mon, 21 Oct 2024 19:09:31 GMT Message-Id: <202410211909.49LJ9V6r093765@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ed Maste Subject: git: 3958be5c29da - stable/14 - fdisk: emit deprecation notice when run List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 3958be5c29dab4abbd7f414f319e11b91db83269 Auto-Submitted: auto-generated The branch stable/14 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=3958be5c29dab4abbd7f414f319e11b91db83269 commit 3958be5c29dab4abbd7f414f319e11b91db83269 Author: Ed Maste AuthorDate: 2024-01-24 19:12:21 +0000 Commit: Ed Maste CommitDate: 2024-10-21 19:08:13 +0000 fdisk: emit deprecation notice when run Requested by: rgrimes Reviewed by: bapt Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D43585 (cherry picked from commit 86e66321bb18ffc242eac61ed2ae0543d71918a0) --- sbin/fdisk/fdisk.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sbin/fdisk/fdisk.c b/sbin/fdisk/fdisk.c index 6cfa2b510f22..a9295b0d1319 100644 --- a/sbin/fdisk/fdisk.c +++ b/sbin/fdisk/fdisk.c @@ -265,6 +265,10 @@ main(int argc, char *argv[]) int partition = -1; struct dos_partition *partp; + fprintf(stderr, + "WARNING: fdisk is deprecated and is not available in FreeBSD 15 or later.\n" + "Please use gpart instead.\n\n"); + while ((c = getopt(argc, argv, "BIab:f:ipqstuv1234")) != -1) switch (c) { case 'B':