Ticket #78: delete_file.diff

File delete_file.diff, 0.7 kB (added by Nicolas, 1 year ago)

Patch

  • delete_file

    old new  
    4343 
    4444int delete_host_file(int host_id, const char* file_name) { 
    4545    DB_MSG_TO_HOST mth; 
    46     sprintf(mth.xml, "<delete_file_info>%s</delete_file_info>\n", file_name); 
    47     sprintf(mth.variety, "delete_file"); 
    4846    int retval; 
    4947    mth.clear(); 
    5048    mth.create_time = time(0); 
    5149    mth.hostid = host_id; 
    5250    mth.handled = false; 
     51    sprintf(mth.xml, "<delete_file_info>%s</delete_file_info>\n", file_name); 
     52    sprintf(mth.variety, "delete_file"); 
    5353    retval = mth.insert(); 
    5454    if (retval) { 
    5555        fprintf(stderr, "msg_to_host.insert(): %d\n", retval); 

If this page is incomplete or incorrect, please edit it or add it to the wiki to-do list. To do this, you must be logged in; click Login or Register above.