Changeset 5271
- Timestamp:
- 02/14/08 06:19:33 (7 months ago)
- Files:
-
- wired/trunk/wired/main.c (modified) (2 diffs)
- wired/trunk/wired/settings.c (modified) (2 diffs)
- wired/trunk/wired/settings.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
wired/trunk/wired/main.c
r5266 r5271 221 221 wi_log_open(); 222 222 223 /* change root directory */ 224 if(!no_chroot) { 225 if(!wi_chroot_to_root_path()) 226 wi_log_err(WI_STR("Could not change root directory: %m")); 227 } 228 223 229 /* init subsystems */ 224 230 wd_ssl_init(); … … 233 239 234 240 /* read the config file */ 235 wd_settings_chroot = !no_chroot;236 241 wd_settings_init(); 237 242 238 243 if(!wd_settings_read_config()) 239 244 exit(1); 240 241 /* change root directory */242 if(!no_chroot) {243 if(!wi_chroot_to_root_path())244 wi_log_err(WI_STR("Could not change root directory: %m"));245 }246 245 247 246 /* apply settings */ wired/trunk/wired/settings.c
r4508 r5271 38 38 39 39 wd_settings_t wd_settings; 40 wi_boolean_t wd_settings_chroot;41 40 42 41 static wi_settings_t *wd_wi_settings; … … 99 98 banner = wi_retain(wd_settings.banner); 100 99 101 result = wi_settings_read_file(wd_wi_settings , wd_settings_chroot);100 result = wi_settings_read_file(wd_wi_settings); 102 101 103 102 wd_settings.name_changed = !wi_is_equal(name, wd_settings.name); wired/trunk/wired/settings.h
r4508 r5271 97 97 98 98 extern wd_settings_t wd_settings; 99 extern wi_boolean_t wd_settings_chroot;100 99 101 100 #endif /* WD_SETTINGS_H */
