Changeset 128 in Main for trunk/Server/config.c
- Timestamp:
- Sep 23, 2024, 7:19:19 PM (8 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Server/config.c
r127 r128 90 90 config.extension = NULL; 91 91 config.server_root = cm_strdup(PREFIX); 92 config.server_admin = cm_strdup(SERVER_ADMIN); 92 93 gethostname(config.hostname, 1024); 94 chdir(config.server_root); 93 95 } 94 96 … … 247 249 free(config.server_root); 248 250 config.server_root = cm_strdup(r[1]); 251 } 252 } else if(cm_strcaseequ(r[0], "ServerAdmin")) { 253 if(r[1] == NULL) { 254 cm_log("Config", "Missing email at line %d", ln); 255 stop = 1; 256 } else { 257 free(config.server_admin); 258 config.server_admin = cm_strdup(r[1]); 249 259 } 250 260 } else if(cm_strcaseequ(r[0], "DocumentRoot")) {
Note:
See TracChangeset
for help on using the changeset viewer.