Changeset 1299


Ignore:
Timestamp:
Apr 14, 2007, 11:16:26 PM (12 years ago)
Author:
bruno
Message:

Attempt to fix a core dumped when a Big file doesn't exist and we're unable to create it (report from Nic Watson mondo_at_nicwatson.org)

File:
1 edited

Legend:

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

    r1274 r1299  
    22732273        if (!does_file_exist(bigfile_fname)) {
    22742274            ftmp = fopen(bigfile_fname, "w");
    2275             paranoid_fclose(ftmp);
    2276             sprintf(tmp, "bigfile %s was deleted - creating a dummy",
    2277                     bigfile_fname);
     2275            if (ftmp == NULL) {
     2276                log_msg("Unable to write to %s", bigfile_fname);
     2277                // So skip it as it doesn't exist
     2278                continue;
     2279            } else {
     2280                paranoid_fclose(ftmp);
     2281            }
    22782282            delete_when_done = TRUE;
    22792283        } else {
Note: See TracChangeset for help on using the changeset viewer.