Module Name: src
Committed By: snj
Date: Tue Jan 27 04:20:24 UTC 2015
Modified Files:
src/libexec/httpd: bozohttpd.c
Log Message:
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.60 -r1.61 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.60 src/libexec/httpd/bozohttpd.c:1.61
--- src/libexec/httpd/bozohttpd.c:1.60 Thu Dec 25 18:53:06 2014
+++ src/libexec/httpd/bozohttpd.c Tue Jan 27 04:20:23 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: bozohttpd.c,v 1.60 2014/12/25 18:53:06 mrg Exp $ */
+/* $NetBSD: bozohttpd.c,v 1.61 2015/01/27 04:20:23 snj 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;