Changeset 1817 in MondoRescue for branches/stable/mondo/src/common/libmondo-filelist.c
- Timestamp:
- Nov 20, 2007, 3:36:00 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/common/libmondo-filelist.c
r1770 r1817 1529 1529 1530 1530 malloc_string(sz_datefile); 1531 if (!(exclude_paths = malloc(8*MAX_STR_LEN))) {1532 fatal_error("Cannot malloc exclude_paths");1533 }1534 1531 malloc_string(g_skeleton_filelist); 1535 1532 // The pathname to the skeleton filelist, used to give better progress reporting for mondo_makefilelist(). … … 1589 1586 mr_msg(2, "include_paths = '%s'", include_paths); 1590 1587 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 . .. \ 1592 1589 " MNT_CDROM " /mnt/floppy /media \ 1593 1590 /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.