mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-24 09:13:37 +01:00
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:
parent
255d2d9bbc
commit
86e66321bb
@ -265,6 +265,10 @@ main(int argc, char *argv[])
|
|||||||
int partition = -1;
|
int partition = -1;
|
||||||
struct dos_partition *partp;
|
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)
|
while ((c = getopt(argc, argv, "BIab:f:ipqstuv1234")) != -1)
|
||||||
switch (c) {
|
switch (c) {
|
||||||
case 'B':
|
case 'B':
|
||||||
|
Loading…
Reference in New Issue
Block a user