Changeset 5271

Show
Ignore:
Timestamp:
02/14/08 06:19:33 (7 months ago)
Author:
morris
Message:

Update for libwired

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • wired/trunk/wired/main.c

    r5266 r5271  
    221221        wi_log_open(); 
    222222 
     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 
    223229        /* init subsystems */ 
    224230        wd_ssl_init(); 
     
    233239 
    234240        /* read the config file */ 
    235         wd_settings_chroot = !no_chroot; 
    236241        wd_settings_init(); 
    237242 
    238243        if(!wd_settings_read_config()) 
    239244                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         } 
    246245 
    247246        /* apply settings */ 
  • wired/trunk/wired/settings.c

    r4508 r5271  
    3838 
    3939wd_settings_t                                   wd_settings; 
    40 wi_boolean_t                                    wd_settings_chroot; 
    4140 
    4241static wi_settings_t                    *wd_wi_settings; 
     
    9998        banner = wi_retain(wd_settings.banner); 
    10099 
    101         result = wi_settings_read_file(wd_wi_settings, wd_settings_chroot); 
     100        result = wi_settings_read_file(wd_wi_settings); 
    102101         
    103102        wd_settings.name_changed = !wi_is_equal(name, wd_settings.name); 
  • wired/trunk/wired/settings.h

    r4508 r5271  
    9797 
    9898extern wd_settings_t                            wd_settings; 
    99 extern wi_boolean_t                                     wd_settings_chroot; 
    10099 
    101100#endif /* WD_SETTINGS_H */