Changeset 1548 in MondoRescue for branches/stable/mondo/src/common/libmondo-filelist.c
- Timestamp:
- Jul 24, 2007, 1:39:36 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/common/libmondo-filelist.c
r1543 r1548 1525 1525 1526 1526 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 } 1528 1530 malloc_string(g_skeleton_filelist); 1529 1531 // The pathname to the skeleton filelist, used to give better progress reporting for mondo_makefilelist(). … … 1583 1585 mr_msg(2, "include_paths = '%s'", include_paths); 1584 1586 mr_msg(1, "Calculating filelist"); 1585 s printf(exclude_paths," %s %s %s %s %s %s . .. \1587 snprintf(exclude_paths, (size_t)8*MAX_STR_LEN," %s %s %s %s %s %s . .. \ 1586 1588 " MNT_CDROM " " MNT_FLOPPY " /media \ 1587 1589 /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.