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 | 3780d127313ad9f4411751d34fd6e1d96b1422cf (patch) | |
tree | 1c303460efebc457e2dea08f7b49994daa0e7146 /source/web/cgi.c | |
parent | 7dfd59963dba921907893b9d1bffe797e9d8b4ad (diff) | |
download | samba-3780d127313ad9f4411751d34fd6e1d96b1422cf.tar.gz samba-3780d127313ad9f4411751d34fd6e1d96b1422cf.tar.xz samba-3780d127313ad9f4411751d34fd6e1d96b1422cf.zip |
Fix HTTP error codes (patch by Vance Lankhaar)
Diffstat (limited to 'source/web/cgi.c')
-rw-r--r-- | source/web/cgi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/web/cgi.c b/source/web/cgi.c index 8abc2f0bd5c..212c2884b60 100644 --- a/source/web/cgi.c +++ b/source/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 "); } |