Module Name:    src
Committed By:   martin
Date:           Wed Feb  4 10:17:19 UTC 2015

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

Log Message:
Pull up following revision(s) (requested by snj in ticket #491):
        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.56.2.1 -r1.56.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.56.2.1 src/libexec/httpd/bozohttpd.c:1.56.2.2
--- src/libexec/httpd/bozohttpd.c:1.56.2.1	Mon Jan 12 10:02:29 2015
+++ src/libexec/httpd/bozohttpd.c	Wed Feb  4 10:17:19 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: bozohttpd.c,v 1.56.2.1 2015/01/12 10:02:29 martin Exp $	*/
+/*	$NetBSD: bozohttpd.c,v 1.56.2.2 2015/02/04 10:17:19 martin Exp $	*/
 
 /*	$eterna: bozohttpd.c,v 1.178 2011/11/18 09:21:15 mrg Exp $	*/
 
@@ -1566,6 +1566,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