diff options
author | mav <mav@FreeBSD.org> | 2016-03-18 13:29:43 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2016-03-18 13:29:43 +0000 |
commit | 1625cb7688c5980d1d243b1cbf6be10baa47ec2b (patch) | |
tree | 862b164b8285cfab842f0b3cf90a2a7aa3efbffc /sbin/geom/core | |
parent | 998379240e60fe68e8cd27e5b91aaf75fcfb80e3 (diff) | |
download | FreeBSD-src-1625cb7688c5980d1d243b1cbf6be10baa47ec2b.zip FreeBSD-src-1625cb7688c5980d1d243b1cbf6be10baa47ec2b.tar.gz |
MFC r296653: Allow standard commands for "unknown" classes in RESCUE mode.
For example, it allows quite useful `geom disk list` command.
Diffstat (limited to 'sbin/geom/core')
-rw-r--r-- | sbin/geom/core/geom.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sbin/geom/core/geom.c b/sbin/geom/core/geom.c index 8c15c21..753c11f 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(); |