artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1ef154
)
don't diplay the full path in error messages
author
reyk
<reyk@openbsd.org>
Tue, 15 Jul 2014 09:51:06 +0000
(09:51 +0000)
committer
reyk
<reyk@openbsd.org>
Tue, 15 Jul 2014 09:51:06 +0000
(09:51 +0000)
usr.sbin/httpd/server_file.c
patch
|
blob
|
history
diff --git
a/usr.sbin/httpd/server_file.c
b/usr.sbin/httpd/server_file.c
index
e8db8a7
..
1942be1
100644
(file)
--- a/
usr.sbin/httpd/server_file.c
+++ b/
usr.sbin/httpd/server_file.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: server_file.c,v 1.
4 2014/07/14 00:19:48
reyk Exp $ */
+/* $OpenBSD: server_file.c,v 1.
5 2014/07/15 09:51:06
reyk Exp $ */
/*
* Copyright (c) 2006 - 2014 Reyk Floeter <reyk@openbsd.org>
@@
-70,6
+70,7
@@
server_file(struct httpd *env, struct client *clt)
strlcat(path, "index.html", sizeof(path));
if (access(path, R_OK) == -1) {
+ strlcpy(path, desc->http_path, sizeof(path));
switch (errno) {
case EACCES:
server_abort_http(clt, 403, path);