Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F167286871
D1150.id2374.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
417 B
Referenced Files
None
Subscribers
None
D1150.id2374.diff
View Options
Index: sbin/geom/core/geom.c
===================================================================
--- sbin/geom/core/geom.c
+++ sbin/geom/core/geom.c
@@ -640,6 +640,11 @@
#endif /* !STATIC_GEOM_CLASSES */
set_class_name();
+
+ /* If we can't load or list, it's not a class. */
+ if (!std_available("load") && !std_available("list"))
+ errx(EXIT_FAILURE, "Invalid class name.");
+
if (*argc < 1)
usage();
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Aug 21, 4:18 PM (6 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37041028
Default Alt Text
D1150.id2374.diff (417 B)
Attached To
Mode
D1150: Fix geom help output
Attached
Detach File
Event Timeline
Log In to Comment