Subversion Repositories Tewi

Rev

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

Rev 39 Rev 61
Line 1... Line 1...
1
/* $Id: config.c 39 2024-09-17 12:20:48Z nishi $ */
1
/* $Id: config.c 61 2024-09-18 12:45:02Z 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 230... Line 230...
230
							stop = 1;
230
							stop = 1;
231
						} else {
231
						} else {
232
							if(current->sslcert != NULL) free(current->sslcert);
232
							if(current->sslcert != NULL) free(current->sslcert);
233
							current->sslcert = cm_strdup(r[1]);
233
							current->sslcert = cm_strdup(r[1]);
234
						}
234
						}
-
 
235
					} else if(cm_strcaseequ(r[0], "ServerRoot")) {
-
 
236
						if(r[1] == NULL) {
-
 
237
							cm_log("Config", "Missing path at line %d", ln);
-
 
238
							stop = 1;
-
 
239
						} else {
-
 
240
							chdir(r[1]);
-
 
241
						}
235
					} else if(cm_strcaseequ(r[0], "DocumentRoot")) {
242
					} else if(cm_strcaseequ(r[0], "DocumentRoot")) {
236
						if(r[1] == NULL) {
243
						if(r[1] == NULL) {
237
							cm_log("Config", "Missing path at line %d", ln);
244
							cm_log("Config", "Missing path at line %d", ln);
238
							stop = 1;
245
							stop = 1;
239
						} else {
246
						} else {