Ignore:
Timestamp:
Aug 18, 2009, 5:28:18 PM (15 years ago)
Author:
Bruno Cornec
Message:

r3369@localhost: bruno | 2009-08-18 16:57:27 +0200

  • Transform bout 100 strcpy in dyn. allocation. Quality is improving
  • function figure_out_kernel_path_interactively_if_necessary now return a dynamically allocated string
  • mondoarchive checked with valgrind in text an newt modes
File:
1 edited

Legend:

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

    r2332 r2334  
    131131    mr_free(tmp);
    132132
    133     if (is_this_a_ramdisk) {
    134         if (!does_file_exist("/THIS-IS-A-RAMDISK")) {
    135             log_to_screen("Using /dev/root is stupid of you but I'll forgive you.");
    136             is_this_a_ramdisk = FALSE;
    137         }
    138     }
    139     if (does_file_exist("/THIS-IS-A-RAMDISK")) {
    140         is_this_a_ramdisk = TRUE;
    141     }
    142133    log_msg(1, "Is this a ramdisk? result = %s", (is_this_a_ramdisk) ? "TRUE" : "FALSE");
    143134    return (is_this_a_ramdisk);
     
    515506
    516507    if (g_cdrw_drive_is_here[0]) {
    517         mr_asprintf(cdrw_device, g_cdrw_drive_is_here);
     508        mr_asprintf(cdrw_device, "%s", g_cdrw_drive_is_here);
    518509        log_msg(3, "Been there, done that. Returning %s", cdrw_device);
    519510        return(cdrw_device);
     
    840831
    841832    if (g_dvd_drive_is_here[0]) {
    842         mr_asprintf(output, g_dvd_drive_is_here);
     833        mr_asprintf(output, "%s", g_dvd_drive_is_here);
    843834        log_msg(3, "Been there, done that. Returning %s", output);
    844835        return (output);
     
    15991590
    16001591        mr_free(bkpinfo->media_device);
    1601         if ((!bkpinfo->restore_mode) && ((bkpinfo->media_device = find_tape_device_and_size(NULL)) == NULL)) {
     1592        if ((!bkpinfo->restore_mode) && ((bkpinfo->media_device = mr_find_tape_device()) == NULL)) {
    16021593            log_msg(3, "Ok, using vanilla scsi tape.");
    16031594            mr_asprintf(bkpinfo->media_device, "%s", VANILLA_SCSI_TAPE);
     
    16411632        mr_free(tmp);
    16421633
    1643         bkpinfo->use_obdr = ask_me_yes_or_no
    1644             ("Do you want to activate OBDR support for your tapes ?");
     1634        bkpinfo->use_obdr = ask_me_yes_or_no("Do you want to activate OBDR support for your tapes ?");
    16451635        bkpinfo->media_size[0] = 0;
    16461636        log_msg(4, "media_size[0] = %ld", bkpinfo->media_size[0]);
Note: See TracChangeset for help on using the changeset viewer.