The branch main has been updated by emaste:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=86e66321bb18ffc242eac61ed2ae0543d71918a0

commit 86e66321bb18ffc242eac61ed2ae0543d71918a0
Author:     Ed Maste <ema...@freebsd.org>
AuthorDate: 2024-01-24 19:12:21 +0000
Commit:     Ed Maste <ema...@freebsd.org>
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':

Reply via email to