Page MenuHomeFreeBSD

D27556.diff
No OneTemporary

D27556.diff

Index: head/sbin/geom/core/geom.c
===================================================================
--- head/sbin/geom/core/geom.c
+++ head/sbin/geom/core/geom.c
@@ -37,6 +37,7 @@
#include <ctype.h>
#include <err.h>
#include <errno.h>
+#include <paths.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
@@ -861,6 +862,9 @@
find_geom(struct gclass *classp, const char *name)
{
struct ggeom *gp;
+
+ if (strncmp(name, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0)
+ name += sizeof(_PATH_DEV) - 1;
LIST_FOREACH(gp, &classp->lg_geom, lg_geom) {
if (strcmp(gp->lg_name, name) == 0)

File Metadata

Mime Type
text/plain
Expires
Wed, Apr 30, 8:22 PM (16 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17864544
Default Alt Text
D27556.diff (602 B)

Event Timeline