Ignore:
Timestamp:
Jul 26, 2007, 12:34:42 PM (17 years ago)
Author:
Bruno Cornec
Message:

More improvements on tape patch (/dev/st0 has to be the default)

File:
1 edited

Legend:

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

    r1569 r1574  
    14431443    char *prompt = NULL;
    14441444    int i = 0;
     1445    int res = 0;
    14451446    FILE *fin = NULL;
    14461447
     
    16081609    case tape:
    16091610
    1610         if (find_tape_device_and_size(bkpinfo->media_device, sz_size)) {
     1611        res = find_tape_device_and_size(bkpinfo->media_device, sz_size);
     1612        if ((res != 0) && (! bkpinfo->media_device[0])) {
    16111613            mr_msg(3, "Ok, using vanilla scsi tape.");
    16121614            strcpy(bkpinfo->media_device, VANILLA_SCSI_TAPE);
     
    16141616                paranoid_fclose(fin);
    16151617            } else {
    1616                 strcpy(bkpinfo->media_device, "/dev/osst0");
     1618                mr_msg(2, "Don't know what your tape device is :-(");
    16171619            }
    16181620        }
     
    16301632                    bkpinfo->media_device);
    16311633            if (!ask_me_yes_or_no(tmp)) {
    1632                 bkpinfo->media_device[0] = '\0';
    16331634                if (!popup_and_get_string
    16341635                    ("Device name?",
Note: See TracChangeset for help on using the changeset viewer.