From: reyk Date: Wed, 23 Jul 2014 22:20:37 +0000 (+0000) Subject: The default index page shouldn't be a directory. It's a 500. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b433342f5cc36fcb9319a2fb9d0045a23bd608e0;p=openbsd The default index page shouldn't be a directory. It's a 500. --- diff --git a/usr.sbin/httpd/server_file.c b/usr.sbin/httpd/server_file.c index 7c2ecf1f613..980efa45f2f 100644 --- a/usr.sbin/httpd/server_file.c +++ b/usr.sbin/httpd/server_file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server_file.c,v 1.9 2014/07/23 22:18:57 reyk Exp $ */ +/* $OpenBSD: server_file.c,v 1.10 2014/07/23 22:20:37 reyk Exp $ */ /* * Copyright (c) 2006 - 2014 Reyk Floeter @@ -64,7 +64,7 @@ server_file_access(struct http_descriptor *desc, char *path, size_t len, if (!len) { /* Recursion - the index "file" is a directory? */ - errno = EACCES; + errno = EINVAL; goto fail; }