aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2016-03-11 12:59:07 +0000
committerAlexander Motin <mav@FreeBSD.org>2016-03-11 12:59:07 +0000
commitc66784839b0809292c31e90be2d7f749fbb87694 (patch)
tree17fd09da836d58db7f3b8aac9c746c94118656d2
parentffc161df9f271bdc1237f555be1edc663566f2ee (diff)
downloadsrc-c66784839b0809292c31e90be2d7f749fbb87694.tar.gz
src-c66784839b0809292c31e90be2d7f749fbb87694.zip
Allow standard commands for "unknown" classes in RESCUE mode.
For example, it allows quite useful `geom disk list` command. MFC after: 1 week
Notes
Notes: svn path=/head/; revision=296653
-rw-r--r--sbin/geom/core/geom.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sbin/geom/core/geom.c b/sbin/geom/core/geom.c
index 5d23d933ec94..e0b77baeec09 100644
--- a/sbin/geom/core/geom.c
+++ b/sbin/geom/core/geom.c
@@ -635,8 +635,7 @@ get_class(int *argc, char ***argv)
} else if (!strcasecmp(class_name, "label")) {
version = &glabel_version;
class_commands = glabel_class_commands;
- } else
- errx(EXIT_FAILURE, "Invalid class name.");
+ }
#endif /* !STATIC_GEOM_CLASSES */
set_class_name();