Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec/httpd Remove d_namelen as it's an BSD extension. Fix...
details: https://anonhg.NetBSD.org/src/rev/a1591b605377
branches: trunk
changeset: 339272:a1591b605377
user: shm <shm%NetBSD.org@localhost>
date: Thu Jul 09 12:32:16 2015 +0000
description:
Remove d_namelen as it's an BSD extension. Fix building bozohttpd on SunOS.
OK mrg@
diffstat:
libexec/httpd/bozohttpd.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diffs (19 lines):
diff -r 5067126fc811 -r a1591b605377 libexec/httpd/bozohttpd.c
--- a/libexec/httpd/bozohttpd.c Thu Jul 09 11:38:05 2015 +0000
+++ b/libexec/httpd/bozohttpd.c Thu Jul 09 12:32:16 2015 +0000
@@ -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 @@
}
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 =
Home |
Main Index |
Thread Index |
Old Index