fdisk: emit deprecation notice when run

Requested by:	rgrimes
Reviewed by:	bapt
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D43585
This commit is contained in:
Ed Maste 2024-01-24 14:12:21 -05:00
parent 255d2d9bbc
commit 86e66321bb

View File

@ -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':