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-cli.c

    r2332 r2334  
    886886    if ((flag_set['t'] && !flag_set['d']) && (! bkpinfo->restore_data)) {
    887887        log_it("Hmm! No tape drive specified. Let's see what we can do.");
    888         if ((tmp1 = find_tape_device_and_size(NULL)) == NULL) {
     888        if ((tmp1 = mr_find_tape_device()) == NULL) {
    889889            fatal_error("Tape device not specified. I couldn't find it either.");
    890890        }
     
    11911191
    11921192    if (flag_set['x']) {
    1193         mr_asprintf(bkpinfo->image_devs, flag_val['x']);
     1193        mr_asprintf(bkpinfo->image_devs, "%s", flag_val['x']);
    11941194        if ((run_program_and_log_output("which ntfsclone", 2)) && (! bkpinfo->restore_data)) {
    11951195            fatal_error("Please install ntfsprogs package/tarball.");
     
    12021202
    12031203    if ((flag_set['k']) && (! bkpinfo->restore_data)) {
     1204        mr_free(bkpinfo->kernel_path);
    12041205        mr_asprintf(bkpinfo->kernel_path, "%s", flag_val['k']);
    12051206        if (!strcmp(bkpinfo->kernel_path, "failsafe")) {
     
    15521553    case SIGKILL:
    15531554        mr_asprintf(tmp, "SIGKILL");
    1554         mr_asprintf(tmp2,
    1555                "I seriously have no clue how this signal even got to me. Something's wrong with your system.");
     1555        mr_asprintf(tmp2, "I seriously have no clue how this signal even got to me. Something's wrong with your system.");
    15561556        break;
    15571557    case SIGTERM:
     
    15651565    case SIGSEGV:
    15661566        mr_asprintf(tmp, "SIGSEGV");
    1567         mr_asprintf(tmp2,
    1568                "Internal programming error. Please send a backtrace as well as your log.");
     1567        mr_asprintf(tmp2, "Internal programming error. Please send a backtrace as well as your log.");
    15691568        break;
    15701569    case SIGPIPE:
Note: See TracChangeset for help on using the changeset viewer.