From 17a4f3d67c8d98805c038f3403bba8182540c262 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Thu, 12 Mar 1998 19:35:56 +0000 Subject: Treat IDE as ESDI in -e mode just like we do in -E mode. --- sbin/disklabel/disklabel.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sbin/disklabel/disklabel.c b/sbin/disklabel/disklabel.c index 5beebbfd4aa..176d9fd34e0 100644 --- a/sbin/disklabel/disklabel.c +++ b/sbin/disklabel/disklabel.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disklabel.c,v 1.49 1998/02/20 01:55:29 deraadt Exp $ */ +/* $OpenBSD: disklabel.c,v 1.50 1998/03/12 19:35:55 millert Exp $ */ /* $NetBSD: disklabel.c,v 1.30 1996/03/14 19:49:24 ghudson Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #endif /* not lint */ #ifndef lint -static char rcsid[] = "$OpenBSD: disklabel.c,v 1.49 1998/02/20 01:55:29 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: disklabel.c,v 1.50 1998/03/12 19:35:55 millert Exp $"; #endif /* not lint */ #include @@ -1271,9 +1271,11 @@ getasciilabel(f, lp) if (!strcmp(cp, "type")) { if (tp == NULL) tp = "unknown"; + else if (strcasecmp(tp, "IDE") == 0) + tp = "ESDI"; cpp = dktypenames; for (; cpp < &dktypenames[DKMAXTYPES]; cpp++) - if ((s = *cpp) && !strcmp(s, tp)) { + if ((s = *cpp) && !strcasecmp(s, tp)) { lp->d_type = cpp - dktypenames; goto next; } -- cgit v1.2.3