Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-6]: src/libexec/httpd Pull up following revision(s) (requested by...



details:   https://anonhg.NetBSD.org/src/rev/ddc15ea4a101
branches:  netbsd-6
changeset: 776893:ddc15ea4a101
user:      martin <martin%NetBSD.org@localhost>
date:      Wed Feb 04 11:37:37 2015 +0000

description:
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.

diffstat:

 libexec/httpd/bozohttpd.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r b2474923544a -r ddc15ea4a101 libexec/httpd/bozohttpd.c
--- a/libexec/httpd/bozohttpd.c Wed Feb 04 11:35:04 2015 +0000
+++ b/libexec/httpd/bozohttpd.c Wed Feb 04 11:37:37 2015 +0000
@@ -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 @@
                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;



Home | Main Index | Thread Index | Old Index