Ignore:
Timestamp:
Nov 20, 2007, 3:36:00 PM (16 years ago)
Author:
Bruno Cornec
Message:

exclude_paths now a configuration item

File:
1 edited

Legend:

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

    r1770 r1817  
    15291529
    15301530    malloc_string(sz_datefile);
    1531     if (!(exclude_paths = malloc(8*MAX_STR_LEN))) {
    1532         fatal_error("Cannot malloc exclude_paths");
    1533     }
    15341531    malloc_string(g_skeleton_filelist);
    15351532    // The pathname to the skeleton filelist, used to give better progress reporting for mondo_makefilelist().
     
    15891586        mr_msg(2, "include_paths = '%s'", include_paths);
    15901587        mr_msg(1, "Calculating filelist");
    1591         snprintf(exclude_paths, (size_t)8*MAX_STR_LEN," %s %s %s %s %s %s %s . .. \
     1588        mr_asprintf(&exclude_paths, " %s %s %s %s %s %s %s . .. \
    15921589" MNT_CDROM " /mnt/floppy /media \
    15931590/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);
Note: See TracChangeset for help on using the changeset viewer.