Subversion Repositories Tewi

Rev

Rev 123 | Rev 128 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 123 Rev 127
Line 1... Line 1...
1
/* $Id: config.c 123 2024-09-22 13:43:47Z nishi $ */
1
/* $Id: config.c 127 2024-09-23 09:39:28Z nishi $ */
2
 
2
 
3
#define SOURCE
3
#define SOURCE
4
 
4
 
5
#include "tw_config.h"
5
#include "tw_config.h"
6
#include "tw_module.h"
6
#include "tw_module.h"
Line 242... Line 242...
242
						if(r[1] == NULL) {
242
						if(r[1] == NULL) {
243
							cm_log("Config", "Missing path at line %d", ln);
243
							cm_log("Config", "Missing path at line %d", ln);
244
							stop = 1;
244
							stop = 1;
245
						} else {
245
						} else {
246
							chdir(r[1]);
246
							chdir(r[1]);
-
 
247
							free(config.server_root);
-
 
248
							config.server_root = cm_strdup(r[1]);
247
						}
249
						}
248
					} else if(cm_strcaseequ(r[0], "DocumentRoot")) {
250
					} else if(cm_strcaseequ(r[0], "DocumentRoot")) {
249
						if(r[1] == NULL) {
251
						if(r[1] == NULL) {
250
							cm_log("Config", "Missing path at line %d", ln);
252
							cm_log("Config", "Missing path at line %d", ln);
251
							stop = 1;
253
							stop = 1;
Line 293... Line 295...
293
								if(tw_module_init(mod) != 0) {
295
								if(tw_module_init(mod) != 0) {
294
									stop = 1;
296
									stop = 1;
295
									break;
297
									break;
296
								}
298
								}
297
							} else {
299
							} else {
-
 
300
								cm_log("Config", "Could not load the module at line %d", ln);
298
								stop = 1;
301
								stop = 1;
299
								break;
302
								break;
300
							}
303
							}
301
						}
304
						}
302
					} else if(cm_strcaseequ(r[0], "DirectoryIndex")) {
305
					} else if(cm_strcaseequ(r[0], "DirectoryIndex")) {