Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Sep 2001 02:54:04 +0200 (CEST)
From:      Dan Lukes <dan@obluda.cz>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/30865: bootpd->readfile.c missing breaks in switch cause incorrect error report
Message-ID:  <200109270054.f8R0s4R42280@xkulesh.vol.cz>

next in thread | raw e-mail | index | archive | help

>Number:         30865
>Category:       bin
>Synopsis:       bootpd->readfile.c missing breaks in switch cause incorrect error report
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 27 01:00:02 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Dan Lukes
>Release:        FreeBSD 4.4-STABLE i386
>Organization:
Obludarium
>Environment:
System: FreeBSD 4.4-STABLE #31: Thu Sep 20 23:06:53 CEST 2001 i386

>Description:
	BOOTPD, file readfile.c 

	missing "break" statement in switch cause "unknown error"
reports instead of specific errors.

	typo "unkown" -> "unknown"

>How-To-Repeat:
>Fix:

--- libexec/bootpd/readfile.c.orig	Mon Mar  5 22:37:21 2001
+++ libexec/bootpd/readfile.c	Thu Sep 27 02:47:41 2001
@@ -697,10 +697,12 @@
 			break;
 		case E_BAD_PATHNAME:
 			msg = "bad pathname (need leading '/')";
+			break;
 		case E_BAD_VALUE:
 			msg = "bad value";
+			break;
 		default:
-			msg = "unkown error";
+			msg = "unknown error";
 			break;
 		}						/* switch */
 		report(LOG_ERR, "in entry named \"%s\", symbol \"%s\": %s",
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200109270054.f8R0s4R42280>