Changeset 5266
- Timestamp:
- 02/14/08 06:09:04 (5 months ago)
- Files:
-
- wired/trunk/wired/main.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
wired/trunk/wired/main.c
r5138 r5266 100 100 101 101 /* set defaults */ 102 wi_ root_path = wi_string_init_with_cstring(wi_string_alloc(), WD_ROOT);102 wi_set_root_path(WI_STR(WD_ROOT)); 103 103 wi_settings_config_path = wi_string_init_with_cstring(wi_string_alloc(), WD_CONFIG_PATH); 104 104 no_chroot = false; … … 127 127 128 128 case 'd': 129 wi_release(wi_root_path); 130 wi_root_path = wi_string_init_with_cstring(wi_string_alloc(), optarg); 129 wi_set_root_path(wi_string_with_cstring(optarg)); 131 130 break; 132 131 … … 242 241 /* change root directory */ 243 242 if(!no_chroot) { 244 if(!wi_ch ange_root())245 wi_log_err(WI_STR("Could not change root to %@: %m"), wi_root_path);243 if(!wi_chroot_to_root_path()) 244 wi_log_err(WI_STR("Could not change root directory: %m")); 246 245 } 247 246
