summaryrefslogtreecommitdiff
path: root/source3/web
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-10-17 12:48:19 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-10-18 14:28:40 +0200
commit2d89b52be8104261aa8f028f49210f016cbf4742 (patch)
treea8fa58b07b0efc5dae0652d7dbc79f99b88e5db4 /source3/web
parent519458a2fa01ae7e8eadebbe1d7895740861c468 (diff)
downloadsamba-2d89b52be8104261aa8f028f49210f016cbf4742.tar.gz
samba-2d89b52be8104261aa8f028f49210f016cbf4742.tar.bz2
samba-2d89b52be8104261aa8f028f49210f016cbf4742.zip
Use separate make variables for libutil and libcrypto.
Diffstat (limited to 'source3/web')
-rw-r--r--source3/web/cgi.c2
-rw-r--r--source3/web/swat.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/source3/web/cgi.c b/source3/web/cgi.c
index 7e689bcce8..ce36bd9310 100644
--- a/source3/web/cgi.c
+++ b/source3/web/cgi.c
@@ -451,7 +451,7 @@ static void cgi_download(char *file)
if (S_ISDIR(st.st_mode))
{
snprintf(buf, sizeof(buf), "%s/index.html", file);
- if (!file_exist(buf, &st) || !S_ISREG(st.st_mode))
+ if (!file_exist_stat(buf, &st) || !S_ISREG(st.st_mode))
{
cgi_setup_error("404 File Not Found","",
"The requested file was not found");
diff --git a/source3/web/swat.c b/source3/web/swat.c
index 1502c5bc2f..23fc43f776 100644
--- a/source3/web/swat.c
+++ b/source3/web/swat.c
@@ -595,7 +595,7 @@ static void ViewModeBoxes(int mode)
****************************************************************************/
static void welcome_page(void)
{
- if (file_exist("help/welcome.html", NULL)) {
+ if (file_exist("help/welcome.html")) {
include_html("help/welcome.html");
} else {
include_html("help/welcome-no-samba-doc.html");
@@ -1439,7 +1439,7 @@ const char *lang_msg_rotate(TALLOC_CTX *ctx, const char *msgid)
cgi_load_variables();
- if (!file_exist(get_dyn_CONFIGFILE(), NULL)) {
+ if (!file_exist(get_dyn_CONFIGFILE())) {
have_read_access = True;
have_write_access = True;
} else {