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 86e66321bb)
This commit is contained in:
parent
273c500de2
commit
3958be5c29
1 changed files with 4 additions and 0 deletions
|
|
@ -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':
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue