summaryrefslogtreecommitdiff
path: root/sbin/pdisk/pdisk.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2016-01-18 21:50:54 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2016-01-18 21:50:54 +0000
commit335ab26d25339b7ae7714bcade3379bf1633e382 (patch)
treee2704c24c297fa540ebe2911a8f9fa42f7eb9cd0 /sbin/pdisk/pdisk.c
parentd669040b8118fb7fb901be63a7ad15f2d114be76 (diff)
The contents of the Apple_Patches partition is none of our business.
Stop pretending we care or know what's in there. Remove 'debugging' mode command to examine the partition contents and the supporting code. ok deraadt@ jasper@
Diffstat (limited to 'sbin/pdisk/pdisk.c')
-rw-r--r--sbin/pdisk/pdisk.c25
1 files changed, 1 insertions, 24 deletions
diff --git a/sbin/pdisk/pdisk.c b/sbin/pdisk/pdisk.c
index 7560e574d7d..2e51e9b4c36 100644
--- a/sbin/pdisk/pdisk.c
+++ b/sbin/pdisk/pdisk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pdisk.c,v 1.48 2016/01/18 17:57:35 krw Exp $ */
+/* $OpenBSD: pdisk.c,v 1.49 2016/01/18 21:50:53 krw Exp $ */
/*
* pdisk - an editor for Apple format partition tables
@@ -56,7 +56,6 @@ void do_create_partition(struct partition_map_header *, int);
void do_delete_partition(struct partition_map_header *);
void do_display_block(struct partition_map_header *, char *);
void do_display_entry(struct partition_map_header *);
-void do_examine_patch_partition(struct partition_map_header *);
int do_expert (struct partition_map_header *, char *);
void do_rename_partition(struct partition_map_header *);
void do_change_type(struct partition_map_header *);
@@ -553,7 +552,6 @@ do_expert(struct partition_map_header * map, char *name)
}
printf(" f full display of nth entry\n");
printf(" v validate map\n");
- printf(" e examine patch partition\n");
printf(" q return to main edit menu\n");
printf(" Q quit editing\n");
break;
@@ -592,10 +590,6 @@ do_expert(struct partition_map_header * map, char *name)
case 'v':
validate_map(map);
break;
- case 'E':
- case 'e':
- do_examine_patch_partition(map);
- break;
default:
bad_input("No such command (%c)", command);
break;
@@ -712,23 +706,6 @@ do_display_entry(struct partition_map_header * map)
}
-void
-do_examine_patch_partition(struct partition_map_header * map)
-{
- struct partition_map *entry;
-
- if (map == NULL) {
- bad_input("No partition map exists");
- return;
- }
- entry = find_entry_by_type(kPatchType, map);
- if (entry == NULL) {
- printf("No patch partition\n");
- } else {
- display_patches(entry);
- }
-}
-
__dead static void
usage(void)
{