Ignore:
Timestamp:
Aug 18, 2009, 2:37:58 PM (11 years ago)
Author:
Bruno Cornec
Message:

r3333@localhost: bruno | 2009-08-08 01:58:31 +0200

  • bkpinfo->prefix is now dynamically assigned
  • Fix newt mondoarchive
File:
1 edited

Legend:

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

    r2321 r2322  
    1919#include "libmondo-fork-EXT.h"
    2020#include "libmondo-stream-EXT.h"
     21
     22extern void mr_strip_spaces(char *);
    2123
    2224#include <sys/types.h>
     
    18031805            finish(1);
    18041806        }
     1807        mr_free(bkpinfo->prefix);
     1808        bkpinfo->prefix = p;
    18051809        log_msg(3, "prefix set to %s", bkpinfo->prefix);
    1806         strcpy(bkpinfo->prefix, p);
    1807         mr_free(p);
    18081810
    18091811        log_msg(3, "Just set nfs_remote_dir to %s", bkpinfo->nfs_remote_dir);
     
    18471849            finish(1);
    18481850        }
    1849         strcpy(bkpinfo->prefix, p);
    1850         mr_free(p);
     1851        mr_free(bkpinfo->prefix);
     1852        bkpinfo->prefix = p;
    18511853        log_msg(3, "prefix set to %s", bkpinfo->prefix);
    18521854        break;
     1855
    18531856    default:
    18541857        fatal_error
     
    20172020    log_it("media device = %s", bkpinfo->media_device);
    20182021    log_it("media size = %ld", bkpinfo->media_size[1]);
    2019     log_it("media type = %s",
    2020            bkptype_to_string(bkpinfo->backup_media_type));
     2022    log_it("media type = %s", bkptype_to_string(bkpinfo->backup_media_type));
    20212023    log_it("prefix = %s", bkpinfo->prefix);
    20222024    log_it("compression = %ld", bkpinfo->compression_level);
     
    20262028    log_it("tmpdir = '%s'", bkpinfo->tmpdir);
    20272029    log_it("image_devs = '%s'", bkpinfo->image_devs);
    2028     log_it("boot_device = '%s' (loader=%c)", bkpinfo->boot_device,
    2029            bkpinfo->boot_loader);
     2030    log_it("boot_device = '%s' (loader=%c)", bkpinfo->boot_device, bkpinfo->boot_loader);
    20302031    if (bkpinfo->media_size[0] < 0) {
    20312032        if (archiving_to_media) {
Note: See TracChangeset for help on using the changeset viewer.