From bbc65c79870bb50566b699ef15c5e28cbefacb53 Mon Sep 17 00:00:00 2001
From: Sergey Lyubka <valenok@gmail.com>
Date: Wed, 15 Jan 2014 07:57:59 +0000
Subject: [PATCH] put_deleve_auth_file -> dav_auth_file. added placeholders for
 user

---
 build/main.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/build/main.c b/build/main.c
index 43f54050c..1d2fd5c4d 100644
--- a/build/main.c
+++ b/build/main.c
@@ -75,6 +75,8 @@ static int exit_flag;
 static char server_name[40];        // Set by init_server_name()
 static char config_file[PATH_MAX];  // Set by process_command_line_arguments()
 static struct mg_server *server;    // Set by start_mongoose()
+static const char static_user_name[64] = "#__u__#";
+static const char static_user_email[64] = "#__e__#";
 
 #if !defined(CONFIG_FILE)
 #define CONFIG_FILE "mongoose.conf"
@@ -606,7 +608,7 @@ static int is_boolean_option(const char *option_name) {
 static int is_filename_option(const char *option_name) {
   return !strcmp(option_name, "cgi_interpreter") ||
     !strcmp(option_name, "global_auth_file") ||
-    !strcmp(option_name, "put_delete_auth_file") ||
+    !strcmp(option_name, "dav_auth_file") ||
     !strcmp(option_name, "access_log_file") ||
     !strcmp(option_name, "error_log_file") ||
     !strcmp(option_name, "ssl_certificate");
@@ -852,7 +854,7 @@ static void show_settings_dialog() {
               WIDTH - 140, y, 65, 12, "Reset to defaults");
   add_control(&p, dia, 0x82, ID_STATIC,
               WS_CHILD | WS_VISIBLE | WS_DISABLED,
-              5, y, 180, 12, server_name);
+              5, y, 180, 12, static_user_name);
 
   dia->cy = ((nelems + 1) / 2 + 1) * HEIGHT + 30;
   DialogBoxIndirectParam(NULL, dia, NULL, DlgProc, (LPARAM) NULL);
-- 
GitLab