Ignore:
Timestamp:
Jul 24, 2009, 9:19:38 PM (11 years ago)
Author:
Bruno Cornec
Message:

find_tape_device_and_size => mr_find_tape_device which allocates 1 string to be freed by caller

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.10/mondo/src/common/libmondo-cli.c

    r2296 r2303  
    896896    if ((flag_set['t'] && !flag_set['d']) && (! bkpinfo->restore_data)) {
    897897        log_it("Hmm! No tape drive specified. Let's see what we can do.");
    898         if (find_tape_device_and_size(flag_val['d'], tmp)) {
    899             fatal_error
    900                 ("Tape device not specified. I couldn't find it either.");
     898        p = mr_find_tape_device();
     899        if (!p) {
     900            fatal_error("Tape device not specified. I couldn't find it either.");
    901901        }
    902902        flag_set['d'] = TRUE;
     903        strcpy(flag_val['d'], p);
     904        mr_free(p);
    903905        mr_asprintf(&tmp1, "You didn't specify a tape streamer device. I'm assuming %s", flag_val['d']);
    904906        log_to_screen(tmp1);
Note: See TracChangeset for help on using the changeset viewer.