Module Name:    src
Committed By:   martin
Date:           Wed Feb  4 11:37:37 UTC 2015

Modified Files:
        src/libexec/httpd [netbsd-6]: bozohttpd.c

Log Message:
Pull up following revision(s) (requested by snj in ticket #1246):
        libexec/httpd/bozohttpd.c: revision 1.61
spit out a 403 not just when an open() fails with EPERM, but with
EACCES as well.


To generate a diff of this commit:
cvs rdiff -u -r1.30.2.1 -r1.30.2.2 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.30.2.1 src/libexec/httpd/bozohttpd.c:1.30.2.2
--- src/libexec/httpd/bozohttpd.c:1.30.2.1	Wed Jul  9 09:42:39 2014
+++ src/libexec/httpd/bozohttpd.c	Wed Feb  4 11:37:37 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: bozohttpd.c,v 1.30.2.1 2014/07/09 09:42:39 msaitoh Exp $	*/
+/*	$NetBSD: bozohttpd.c,v 1.30.2.2 2015/02/04 11:37:37 martin Exp $	*/
 
 /*	$eterna: bozohttpd.c,v 1.178 2011/11/18 09:21:15 mrg Exp $	*/
 
@@ -1564,6 +1564,7 @@ bozo_process_request(bozo_httpreq_t *req
 		debug((httpd, DEBUG_FAT, "open failed: %s", strerror(errno)));
 		switch(errno) {
 		case EPERM:
+		case EACCES:
 			(void)bozo_http_error(httpd, 403, request,
 						"no permission to open file");
 			break;

Reply via email to