From 1b1ee5553889e207087539ddafa5dfd4e28bd585 Mon Sep 17 00:00:00 2001 From: rgrimes Date: Sun, 11 Jun 1995 19:33:05 +0000 Subject: Merge RELENG_2_0_5 into HEAD --- release/sysinstall/attr.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'release/sysinstall/attr.c') diff --git a/release/sysinstall/attr.c b/release/sysinstall/attr.c index 5cd7f50..9f3b246 100644 --- a/release/sysinstall/attr.c +++ b/release/sysinstall/attr.c @@ -4,7 +4,7 @@ * This is probably the last attempt in the `sysinstall' line, the next * generation being slated to essentially a complete rewrite. * - * $Id: attr.c,v 1.1 1995/05/27 10:38:41 jkh Exp $ + * $Id: attr.c,v 1.2.2.4 1995/06/06 00:44:51 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -157,11 +157,23 @@ attr_match(Attribs *attr, char *name) { int n = 0; - while((strcasecmp(attr[n].name, name)!=0) && (n < num_attribs) && (n < 20)) + if (isDebug()) + msgDebug("Trying to match attribute `%s'\n", name); + + while ((n < num_attribs) && (strcasecmp(attr[n].name, name) != 0)) { + if (isDebug()) + msgDebug("Skipping attribute %u\n", n); n++; + } - if (strcasecmp(attr[n].name, name)==0) + if (isDebug()) + msgDebug("Stopped on attribute %u\n", n); + + if (n < num_attribs) { + if (isDebug()) + msgDebug("Returning `%s'\n", attr[n].value); return((const char *) attr[n].value); + } return NULL; } -- cgit v1.1