Changeset 3647

Show
Ignore:
Timestamp:
01/28/06 18:37:29 (3 years ago)
Author:
morris
Message:

Fix bugs and deadlock when deleting groups

Files:

Legend:

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

    r3551 r3647  
    482482        wi_file_seek(tmpfile, 0); 
    483483         
    484         while((string = wi_file_read(tmpfile, WI_FILE_BUFFER_SIZE))) { 
     484        while((string = wi_file_read_line(tmpfile))) { 
     485                wi_log_debug(WI_STR("'%@'"), string); 
    485486                if(wi_string_length(string) > 0 && !wi_string_has_prefix(string, WI_STR("#"))) { 
    486487                        array = wi_string_components_separated_by_string(string, WI_STR(":")); 
     
    496497                } 
    497498                         
    498                 wi_file_write(tmpfile, WI_STR("%@"), string); 
     499                wi_file_write(file, WI_STR("%@\n"), string); 
    499500 
    500501                wi_release(string); 
     
    505506        wi_release(tmpfile); 
    506507        wi_release(empty); 
     508         
     509        wi_lock_unlock(wd_users_lock); 
    507510         
    508511        return result;