Changeset 1091


Ignore:
Timestamp:
Feb 3, 2007, 11:25:38 AM (13 years ago)
Author:
bruno
Message:

mr_fclose improved + fixes for libmondo-archive.c

Location:
branches/stable/mondo/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/common/libmondo-archive.c

    r1087 r1091  
    536536    /*@ buffer ************************************************************ */
    537537    char *tmp;
    538     char *tmp1 = NULL;
    539538    char *scratchdir;
    540539    char *command;
    541540    char *bootldr_str;
    542     char *tape_device;
    543541    char *last_filelist_number;
    544542    char *tape_size_sz;
     
    558556
    559557    FILE *fd = NULL;
     558    FILE *fd1 = NULL;
    560559
    561560    assert(bkpinfo != NULL);
     
    840839            bkpinfo->tmpdir,        // parameter #2
    841840            bkpinfo->scratchdir,    // parameter #3
     841            );
    842842            //bkpinfo->kernel_path, // parameter #4
    843843            //tape_device,          // parameter #5
     
    857857            //bkpinfo->differential,    // parameter #19 (INT)
    858858            //use_gzip_sz);         // parameter #20 (STRING)
    859             );
    860859
    861860    log_msg(2, command);
     
    906905    mr_free(bootldr_str);
    907906    mr_free(last_filelist_number);
    908     mr_free(cd_recovery_sz);
    909907    mr_free(tape_size_sz);
    910908    mr_free(devs_to_exclude);
  • branches/stable/mondo/src/lib/mr_file.c

    r1090 r1091  
    4545        mr_log_exit(-1,"fd is NULL.\nShould NOT happen.\nExiting");
    4646    }
    47     (void)fclose(fd);
     47    if (fclose(fd) < 0) {
     48        mr_msg(0,"Unable to close fd");
     49    }
    4850    fd = NULL;
    4951}
Note: See TracChangeset for help on using the changeset viewer.