aboutsummaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2024-01-24 19:33:35 +0000
committerEd Maste <emaste@FreeBSD.org>2024-03-25 19:59:09 +0000
commit3661658c76ce028a6dcdd54b00a822159a3ae6f3 (patch)
treed184390812ee6f11806a17b780c8f6371e105419 /sbin
parentb6f3cced151f8b7dc3e32977e8f1b826f0654690 (diff)
downloadsrc-3661658c76ce028a6dcdd54b00a822159a3ae6f3.tar.gz
src-3661658c76ce028a6dcdd54b00a822159a3ae6f3.zip
bsdlabel: emit deprecation notice when run
Reviewed by: imp Sponsored by: The FreeBSD Foundation Differential Reision: https://reviews.freebsd.org/D43586
Diffstat (limited to 'sbin')
-rw-r--r--sbin/bsdlabel/bsdlabel.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sbin/bsdlabel/bsdlabel.c b/sbin/bsdlabel/bsdlabel.c
index b831c8ba4ec6..a68ee377a97c 100644
--- a/sbin/bsdlabel/bsdlabel.c
+++ b/sbin/bsdlabel/bsdlabel.c
@@ -135,6 +135,10 @@ main(int argc, char *argv[])
error = 0;
name = NULL;
+ fprintf(stderr,
+ "WARNING: bsdlabel is deprecated and is not available in FreeBSD 15 or later.\n"
+ "Please use gpart instead.\n\n");
+
while ((ch = getopt(argc, argv, "ABb:efm:nRrw")) != -1)
switch (ch) {
case 'A':