Ignore:
Timestamp:
Oct 1, 2013, 8:20:32 AM (7 years ago)
Author:
Bruno Cornec
Message:
  • Fix ISO mode when netfs_remote_dir is NULL (wasn't differentiated correctly with dynamic meory allocation)
File:
1 edited

Legend:

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

    r3191 r3196  
    32103210        log_to_screen("Warning! CD is too big. It occupies %ld KB, which is more than the %ld KB allowed.",(long) space_occupied_by_cd(bkpinfo->scratchdir),(long) bkpinfo->media_size);
    32113211    }
    3212     mr_asprintf(isofile, "%s/%s/%s-%d.iso", bkpinfo->isodir,
    3213             bkpinfo->netfs_remote_dir, bkpinfo->prefix,
    3214             g_current_media_number);
     3212
     3213    if (bkpinfo->netfs_remote_dir) {
     3214        // NETFS
     3215        mr_asprintf(isofile, "%s/%s/%s-%d.iso", bkpinfo->isodir, bkpinfo->netfs_remote_dir, bkpinfo->prefix, g_current_media_number);
     3216    } else {
     3217        // ISO
     3218        mr_asprintf(fname, "%s/%s-%d.iso", bkpinfo->isodir, bkpinfo->prefix, g_current_media_number);
     3219    }
    32153220    for (that_one_was_ok = FALSE; !that_one_was_ok;) {
    32163221        if (bkpinfo->backup_media_type != usb) {
Note: See TracChangeset for help on using the changeset viewer.