Changeset 5270

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

Change root after inits

Files:

Legend:

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

    r5268 r5270  
    215215        wi_log_open(); 
    216216 
     217        /* change root directory */ 
     218        if(!no_chroot) { 
     219                if(!wi_chroot_to_root_path()) 
     220                        wi_log_err(WI_STR("Could not change root directory: %m")); 
     221        } 
     222 
    217223        /* init subsystems */ 
    218224        wt_ssl_init(); 
    219225        wt_clients_init(); 
    220226        wt_servers_init(); 
    221  
    222         /* change root directory */ 
    223         if(!no_chroot) { 
    224                 if(!wi_chroot_to_root_path()) 
    225                         wi_log_err(WI_STR("Could not change root directory: %m")); 
    226         } 
    227227 
    228228        /* read the config file */