Changeset 1548 in MondoRescue for branches/stable/mondo/src/common


Ignore:
Timestamp:
Jul 24, 2007, 1:39:36 AM (18 years ago)
Author:
Bruno Cornec
Message:
  • Add the possibiilty to edit in interactive mode mtab and device.map for grub
  • Remove blkid cache files after restore to avoid problems in cloning mode
  • Fix what seems to appear a huge number of bugs in hack-fstab (illustration of 1 LOC = 1 bug :-)
  • Especially improve LABEL and UUID support.
  • Should fix #185
  • Exclude_path should be 4*MAX_STR_LEN everywhere. Fixed now.
  • Increasing that value will allow to having larger exclude paths.
  • Should solve bug #137 (and maybe #3 as well)
  • Adds support for fedora 7

(merge -r 1533:1547 $SVN_M/branches/2.2.5)

Location:
branches/stable/mondo/src/common
Files:
5 edited

Legend:

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

    r1543 r1548  
    19301930            ("Exclude paths",
    19311931             "Please enter paths which you do NOT want to backup. Separate them with spaces. NB: /tmp and /proc are always excluded. :-) Just hit 'Enter' if you want to do a full system backup.",
    1932              bkpinfo->exclude_paths, MAX_STR_LEN)) {
     1932             bkpinfo->exclude_paths, (4*MAX_STR_LEN)-1)) {
    19331933            log_to_screen("User has chosen not to backup the PC");
    19341934            finish(1);
  • branches/stable/mondo/src/common/libmondo-filelist.c

    r1543 r1548  
    15251525
    15261526    malloc_string(sz_datefile);
    1527     malloc_string(exclude_paths);
     1527    if (!(exclude_paths = malloc(8*MAX_STR_LEN))) {
     1528        fatal_error("Cannot malloc exclude_paths");
     1529    }
    15281530    malloc_string(g_skeleton_filelist);
    15291531    // The pathname to the skeleton filelist, used to give better progress reporting for mondo_makefilelist().
     
    15831585        mr_msg(2, "include_paths = '%s'", include_paths);
    15841586        mr_msg(1, "Calculating filelist");
    1585         sprintf(exclude_paths, " %s %s %s %s %s %s . .. \
     1587        snprintf(exclude_paths, (size_t)8*MAX_STR_LEN," %s %s %s %s %s %s . .. \
    15861588" MNT_CDROM " " MNT_FLOPPY " /media \
    15871589/proc /sys /tmp /var/log/lastlog /root/images/mondo " MINDI_CACHE " " MONDO_CACHE, excp, call_program_and_get_last_line_of_output("locate /win386.swp 2> /dev/null"), call_program_and_get_last_line_of_output("locate /hiberfil.sys 2> /dev/null"), call_program_and_get_last_line_of_output("locate /pagefile.sys 2> /dev/null"), (tmpdir[0] == '/' && tmpdir[1] == '/') ? (tmpdir + 1) : tmpdir, (scratchdir[0] == '/' && scratchdir[1] == '/') ? (scratchdir + 1) : scratchdir);
  • branches/stable/mondo/src/common/libmondo-fork.c

    r1344 r1548  
    66#include "mr_msg.h"
    77#include "mr_str.h"
     8#include "mr_gettext.h"
    89
    910#include "mondostructures.h"
  • branches/stable/mondo/src/common/libmondo-mountlist.c

    r1440 r1548  
    1717#include "libmondo-string-EXT.h"
    1818#include "newt-specific-EXT.h"
     19
    1920#include "mr_mem.h"
    2021#include "mr_msg.h"
     22#include "mr_gettext.h"
    2123
    2224/*@unused@*/
  • branches/stable/mondo/src/common/libmondo-stream.c

    r1424 r1548  
    1616#include "mr_msg.h"
    1717#include "mr_list.h"
     18#include "mr_gettext.h"
    1819
    1920#include "mondostructures.h"
     
    13521353int write_backcatalog_to_tape(struct s_bkpinfo *bkpinfo)
    13531354{
    1354     int i, last, res = 0;
     1355    int res = 0;
    13551356    char *fname = NULL;
    13561357    struct mr_list_elt *elt = NULL;
Note: See TracChangeset for help on using the changeset viewer.