Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec/httpd spit out a 403 not just when an open() fails w...
details: https://anonhg.NetBSD.org/src/rev/cd38c1dc394e
branches: trunk
changeset: 335864:cd38c1dc394e
user: snj <snj%NetBSD.org@localhost>
date: Tue Jan 27 04:20:23 2015 +0000
description:
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 c39adbab7381 -r cd38c1dc394e libexec/httpd/bozohttpd.c
--- a/libexec/httpd/bozohttpd.c Tue Jan 27 02:37:18 2015 +0000
+++ b/libexec/httpd/bozohttpd.c Tue Jan 27 04:20:23 2015 +0000
@@ -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 @@
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