diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2014-07-23 22:20:38 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2014-07-23 22:20:38 +0000 |
commit | f099494c0022e81a93685aeefe367a5a66b5c58f (patch) | |
tree | 23829558e958a91cff45cc50fcd2574a7c58ff17 /usr.sbin/httpd/server_file.c | |
parent | f1f4078c212e87d69654e11438d90e8cbb8016da (diff) |
The default index page shouldn't be a directory. It's a 500.
Diffstat (limited to 'usr.sbin/httpd/server_file.c')
-rw-r--r-- | usr.sbin/httpd/server_file.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <reyk@openbsd.org> @@ -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; } |