Changeset 893

Show
Ignore:
Timestamp:
04/26/2005 11:00:32 PM (4 years ago)
Author:
ckruse
Message:

fixed a very nasty bug in the archiving functions

Location:
cforum/branches/3.3
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • cforum/branches/3.3/ChangeLog

    r891 r893  
    112005-04-26 Christian Kruse <ckruse@wwwtech.de> 
    2         * src/fo_post.c: Fixed #787 
    3         * src/defines.h: Changed CF_BUFSIZ to BUFSIZ (#define CF_BUFSIZ BUFSIZ), 
    4                 changed version number 
     2        * src/modules/flt_xmlstorage.c: Fixed a _very_ nasty and bad bug in the 
     3                archiving functions 
    54 
    6 2005-04-24 Christian Seiler <self@christian-seiler.de> 
    7         * src/parsetpl/parsetpl.lex: Added {iws} and {endiws} tags. 
    8  
  • cforum/branches/3.3/src/modules/flt_xmlstorage.c

    r856 r893  
    10561056 
    10571057    if(stat(str.content,&st) == -1) { 
    1058       if(cf_make_path(buff,0755) != 0) { 
     1058      if(cf_make_path(str.content,0755) != 0) { 
    10591059        cf_log(CF_ERR|CF_FLSH,__FILE__,__LINE__,"Error creating path %s! (%s)\n",buff,strerror(errno)); 
    10601060        exit(-1); 
     
    10751075 
    10761076    olen = str.len; 
    1077     str_char_append(&str,'/'); 
    1078     u_int16_to_str(&str,(u_int16_t)(t.tm_mon+1)); 
     1077    str_chars_append(&str,"/t",2); 
     1078    u_int64_to_str(&str,threads[i]->tid); 
    10791079    str_chars_append(&str,".xml",4); 
    10801080