From 938f37afc2b47184e5802324db31fbb357a4b6cc Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Fri, 28 Feb 2003 08:48:26 +0000 Subject: Fix HTTP error codes (patch by Vance Lankhaar) (This used to be commit e660b0b8d034c6cb9771601c64b952380d136ca1) --- source3/web/cgi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/web') 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
Check your \"hosts allow\" and \"hosts deny\" options in smb.conf "); } -- cgit