diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-05-26 02:06:33 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:17:02 -0500 |
commit | 7e582319528b674d5f7603409e357138194a0ab1 (patch) | |
tree | a5c3c63c60dde9e401f1978197722fabfc10f7a4 /source4/web_server/http.c | |
parent | d70912a26af49db468af7ec88e9689b8176e0576 (diff) | |
download | samba-7e582319528b674d5f7603409e357138194a0ab1.tar.gz samba-7e582319528b674d5f7603409e357138194a0ab1.tar.bz2 samba-7e582319528b674d5f7603409e357138194a0ab1.zip |
r6982: install the swat pages with 'make installswat'
(This used to be commit 31543e1eae03d22343ea8c970494af36eb07b41f)
Diffstat (limited to 'source4/web_server/http.c')
-rw-r--r-- | source4/web_server/http.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/web_server/http.c b/source4/web_server/http.c index ad7eaa8ead..61ed685361 100644 --- a/source4/web_server/http.c +++ b/source4/web_server/http.c @@ -250,7 +250,7 @@ static const char *http_local_path(struct websrv_context *web, const char *url) } } - path = talloc_asprintf(web, "%s/%s", lp_swat_directory(), url+1); + path = talloc_asprintf(web, "%s/html/%s", lp_swat_directory(), url+1); if (path == NULL) return NULL; if (directory_exist(path)) { @@ -275,7 +275,7 @@ static void http_simple_request(struct websrv_context *web) /* looks ok */ web->output.fd = open(path, O_RDONLY); if (web->output.fd == -1) { - http_error_unix(web, url); + http_error_unix(web, path); return; } @@ -354,7 +354,7 @@ static void esp_request(struct esp_state *esp) /* looks ok */ fd = open(path, O_RDONLY); if (fd == -1) { - http_error_unix(web, url); + http_error_unix(web, path); return; } |