From nobody Sun Oct 13 17:52:36 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 4XRSch5Lgxz5ZH3J; Sun, 13 Oct 2024 17:52:36 +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 4XRSch4cJmz4GNV; Sun, 13 Oct 2024 17:52:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728841956; 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=AvliSXqQO2t3BoSak54MRRJ1Ntuu5JtidDSbV0PZkQc=; b=f5hvUxY1z3kxJusa4riHbhAmtPo2Slj3NLS/KylOYn9SQ5Jm/vhC5cZX2IB8ZSGvtADBbM E/9xftEgamB6rI740e7ONQBLIz1NOlTsTZ92WR9wJX9w8nUpAdeG9znF552ckwMylf41d/ 5Gj6Sei+53FCqogL//eDsrV/PMhu8k5bR+dCs9Bt5ZQPL8x1sH4Z4iXooEJdPV7+aiJ7/0 zXttNPh7TH8jh5p960G5HfZkZE+KZ0bhEiZiEtU06x4c9ACnpt3VxPdkBi46EZUG0DqURf DJw2qEMID2T9YfR0IDVdmXsPP+EkSEbMyxc0TzUlWlda7MT+YmKSDcyyxFPgVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728841956; 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=AvliSXqQO2t3BoSak54MRRJ1Ntuu5JtidDSbV0PZkQc=; b=aHES0OMvhvubw2hQa1IRbRIMq+z2BM0SJtlDSZpf4YLV+7cdVQVD5p9Jwg/Lv8riha/YM1 TMqHVbJ5IBrk8DFf5N8pR0U3y0xoQdb4dSNvrhe1Ld9lNIK7uUZlnwNWK/pU4TzGeSV+ot pSrl6Jvz6ephljsYmEB8JBJtTWNN9fjroAxJlv2MIfyJYLvo0Bx1emymY0dn98X3UMO3M9 bBwFzJE3nQQeQ1sal2GJB3D3LdQKys2wbeTbNuql41pmd3WThLFzC/j6/iT+VbD2mX1v0I Kp379JE84oy7sT9g5TYVtgT/cRHYqiYsTglRmPEnqT39wFSPNo0x0AF3ZM1cog== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728841956; a=rsa-sha256; cv=none; b=qq2hS3M8j/jNHRtSqNrjnPyOT3ultkfJWQZGE6Z4IJ80ycuS7/jmcNnsalu7vH5vk5g3mw EY2++1+9CcS9QmJyMUZDWgwknYFDdfeJ4Zt0oVV4ka16zItAQPuXRm2Tk19R/ohiVAGAsk gxbBHlQb5jaBL3FZyihDnbrhdifQfGv/lVCchf/yQz8Re2IH1Kjo0jhNidatFlcJa+b946 8mGjWtlqQYZxSOB7S0RNyZ1ynD7c2yBeHhaw0OWsYQjcoIM/0BCUAr1/eMPrd+IhntVm9M /36YO93a1CAj28apYNh8tCpplm6hnFi0h7U3nv0YAmi30mxLbVfYoOJ4uXmOMw== 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 4XRSch4Ckhz149L; Sun, 13 Oct 2024 17:52:36 +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 49DHqakU070112; Sun, 13 Oct 2024 17:52:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49DHqaMu070109; Sun, 13 Oct 2024 17:52:36 GMT (envelope-from git) Date: Sun, 13 Oct 2024 17:52:36 GMT Message-Id: <202410131752.49DHqaMu070109@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: 86e66321bb18 - main - fdisk: emit deprecation notice when run 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: emaste X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 86e66321bb18ffc242eac61ed2ae0543d71918a0 Auto-Submitted: auto-generated The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=86e66321bb18ffc242eac61ed2ae0543d71918a0 commit 86e66321bb18ffc242eac61ed2ae0543d71918a0 Author: Ed Maste AuthorDate: 2024-01-24 19:12:21 +0000 Commit: Ed Maste CommitDate: 2024-10-13 17:52:14 +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 --- sbin/fdisk/fdisk.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sbin/fdisk/fdisk.c b/sbin/fdisk/fdisk.c index d9514555ae34..a2e1cdb76c6a 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':