Module Name:    src
Committed By:   shm
Date:           Thu Jul  9 12:32:16 UTC 2015

Modified Files:
        src/libexec/httpd: bozohttpd.c

Log Message:
Remove d_namelen as it's an BSD extension. Fix building bozohttpd on SunOS.

OK mrg@


To generate a diff of this commit:
cvs rdiff -u -r1.64 -r1.65 src/libexec/httpd/bozohttpd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/libexec/httpd/bozohttpd.c
diff -u src/libexec/httpd/bozohttpd.c:1.64 src/libexec/httpd/bozohttpd.c:1.65
--- src/libexec/httpd/bozohttpd.c:1.64	Sat May  2 11:35:48 2015
+++ src/libexec/httpd/bozohttpd.c	Thu Jul  9 12:32:16 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: bozohttpd.c,v 1.64 2015/05/02 11:35:48 mrg Exp $	*/
+/*	$NetBSD: bozohttpd.c,v 1.65 2015/07/09 12:32:16 shm Exp $	*/
 
 /*	$eterna: bozohttpd.c,v 1.178 2011/11/18 09:21:15 mrg Exp $	*/
 
@@ -1093,8 +1093,7 @@ check_virtual(bozo_httpreq_t *request)
 				}
 				debug((httpd, DEBUG_OBESE, "looking at dir``%s''",
 			 	   d->d_name));
-				if (d->d_namlen == len && strcmp(d->d_name,
-				    request->hr_host) == 0) {
+				if (strcmp(d->d_name, request->hr_host) == 0) {
 					/* found it, punch it */
 					debug((httpd, DEBUG_OBESE, "found it punch it"));
 					request->hr_virthostname =

Reply via email to