diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2003-02-28 08:47:22 +0000 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2003-02-28 08:47:22 +0000 |
commit | 3467ed21dd3ec0ae537564eb0219ad86517c5638 (patch) | |
tree | 947d6f2b63e77658997169fbfd5c820630e45419 /source3/web | |
parent | 7972855b810aabcd4115806652494bb21654323e (diff) | |
download | samba-3467ed21dd3ec0ae537564eb0219ad86517c5638.tar.gz samba-3467ed21dd3ec0ae537564eb0219ad86517c5638.tar.bz2 samba-3467ed21dd3ec0ae537564eb0219ad86517c5638.zip |
Fix HTTP error codes (patch by Vance Lankhaar)
(This used to be commit 3780d127313ad9f4411751d34fd6e1d96b1422cf)
Diffstat (limited to 'source3/web')
-rw-r--r-- | source3/web/cgi.c | 6 |
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 "); } |