Changeset 3062 in MondoRescue


Ignore:
Timestamp:
Nov 11, 2012, 3:58:24 AM (11 years ago)
Author:
Bruno Cornec
Message:

r5044@localhost: bruno | 2012-11-11 01:16:37 +0100

  • Expand the exclude list to 16 times 512 (MAX_STR_LEN) instead of 8 to support a larger exclude list. Final solution to this issue is to back port code from 3.1.
File:
1 edited

Legend:

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

    r3060 r3062  
    21772177    char *mds = NULL;
    21782178    char *q = NULL;
    2179     char p[8*MAX_STR_LEN];
     2179    char p[16*MAX_STR_LEN];
    21802180    char *sz_size;
    21812181    char *command;
     
    27592759
    27602760        if (bkpinfo->exclude_paths != NULL ) {
    2761             strncpy(p,bkpinfo->exclude_paths,(8*MAX_STR_LEN)-1);
     2761            strncpy(p,bkpinfo->exclude_paths,(16*MAX_STR_LEN)-1);
    27622762        } else {
    27632763            p[0] = '\0';
    27642764        }
    2765         popup_and_get_string("Exclude paths", "Please enter paths which you do NOT want to backup. Separate them with '|'. NB: /tmp and /proc are always excluded. :-) Just hit 'Enter' if you want to do a full system backup.", p, (8*MAX_STR_LEN)-1);
     2765        popup_and_get_string("Exclude paths", "Please enter paths which you do NOT want to backup. Separate them with '|'. NB: /tmp and /proc are always excluded. :-) Just hit 'Enter' if you want to do a full system backup.", p, (16*MAX_STR_LEN)-1);
    27662766        if (p == NULL) {
    27672767            log_to_screen("User has chosen not to backup the PC");
Note: See TracChangeset for help on using the changeset viewer.