summaryrefslogtreecommitdiff
path: root/source3/web/cgi.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2003-02-28 08:48:26 +0000
committerJelmer Vernooij <jelmer@samba.org>2003-02-28 08:48:26 +0000
commit938f37afc2b47184e5802324db31fbb357a4b6cc (patch)
tree58e6769fdf393fa21266188ac25c80382bc18015 /source3/web/cgi.c
parent2fa05e62c57d1cd508501d39977bf6e2352f0138 (diff)
downloadsamba-938f37afc2b47184e5802324db31fbb357a4b6cc.tar.gz
samba-938f37afc2b47184e5802324db31fbb357a4b6cc.tar.bz2
samba-938f37afc2b47184e5802324db31fbb357a4b6cc.zip
Fix HTTP error codes (patch by Vance Lankhaar)
(This used to be commit e660b0b8d034c6cb9771601c64b952380d136ca1)
Diffstat (limited to 'source3/web/cgi.c')
-rw-r--r--source3/web/cgi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/web/cgi.c b/source3/web/cgi.c
index 8abc2f0bd5..212c2884b6 100644
--- a/source3/web/cgi.c
+++ b/source3/web/cgi.c
@@ -455,11 +455,11 @@ void cgi_setup(const char *rootdir, int auth_required)
char *lang;
if (chdir(rootdir)) {
- cgi_setup_error("400 Server Error", "",
+ cgi_setup_error("500 Server Error", "",
"chdir failed - the server is not configured correctly");
}
- /* Handle the possability we might be running as non-root */
+ /* Handle the possibility we might be running as non-root */
sec_init();
if ((lang=getenv("HTTP_ACCEPT_LANGUAGE"))) {
@@ -478,7 +478,7 @@ void cgi_setup(const char *rootdir, int auth_required)
inetd_server = True;
if (!check_access(1, lp_hostsallow(-1), lp_hostsdeny(-1))) {
- cgi_setup_error("400 Server Error", "",
+ cgi_setup_error("403 Forbidden", "",
"Samba is configured to deny access from this client\n<br>Check your \"hosts allow\" and \"hosts deny\" options in smb.conf ");
}