Changeset 1540 in MondoRescue for branches/2.2.5/mondo/src/common/libmondo-filelist.c
- Timestamp:
- Jul 20, 2007, 1:28:27 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.5/mondo/src/common/libmondo-filelist.c
r1485 r1540 1696 1696 malloc_string(sz_filelist); 1697 1697 malloc_string(g_skeleton_filelist); 1698 if (!(exclude_paths = malloc( 1000))) {1698 if (!(exclude_paths = malloc(8*MAX_STR_LEN))) { 1699 1699 fatal_error("Cannot malloc exclude_paths"); 1700 1700 } … … 1749 1749 log_msg(2, "include_paths = '%s'", include_paths); 1750 1750 log_msg(1, "Calculating filelist"); 1751 s printf(exclude_paths," %s %s %s %s %s %s . .. \1751 snprintf(exclude_paths, (size_t)8*MAX_STR_LEN," %s %s %s %s %s %s . .. \ 1752 1752 " MNT_CDROM " " MNT_FLOPPY " /media \ 1753 1753 /proc /sys /root/images/mondo " MINDI_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.