Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/6db20212e10f
branches:  netbsd-7
changeset: 798950:6db20212e10f
user:      martin <martin%NetBSD.org@localhost>
date:      Wed Feb 04 10:17:19 2015 +0000

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

diffstat:

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

diffs (17 lines):

diff -r e1fb480062c9 -r 6db20212e10f libexec/httpd/bozohttpd.c
--- a/libexec/httpd/bozohttpd.c Wed Feb 04 10:14:30 2015 +0000
+++ b/libexec/httpd/bozohttpd.c Wed Feb 04 10:17:19 2015 +0000
@@ -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 @@
                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