Changeset 332 in MondoRescue for branches/2.06/mondo
- Timestamp:
- Jan 19, 2006, 10:49:45 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.06/mondo/mondo/common/libmondo-filelist.c
r275 r332 1534 1534 // 2.6 has /sys as a proc-type thing -- must be excluded 1535 1535 sprintf(tmp, 1536 "find %s -maxdepth %d -path /proc -prune -o -path /tmp-prune -o -path /sys -prune -o -path /dev/shm -prune -o -path /media/floppy -prune -o -type d -a -print > %s 2> /dev/null",1536 "find %s -maxdepth %d -path /proc -prune -o -path -prune -o -path /sys -prune -o -path /dev/shm -prune -o -path /media/floppy -prune -o -type d -a -print > %s 2> /dev/null", 1537 1537 dir, MAX_SKEL_DEPTH, g_skeleton_filelist); 1538 1538 #else 1539 1539 // On BSD, for example, /sys is the kernel sources -- don't exclude 1540 1540 sprintf(tmp, 1541 "find %s -maxdepth %d -path /proc -prune -o -path /tmp-prune -o -type d -a -print > %s 2> /dev/null",1541 "find %s -maxdepth %d -path /proc -prune -o -path -prune -o -type d -a -print > %s 2> /dev/null", 1542 1542 dir, MAX_SKEL_DEPTH, g_skeleton_filelist); 1543 1543 #endif … … 1775 1775 sprintf(exclude_paths, " %s %s %s %s %s %s . .. \ 1776 1776 " MNT_CDROM " " MNT_FLOPPY " /media/cdrom /media/cdrecorder \ 1777 /proc /sys / tmp /root/images/mondo /root/images/mindi ", 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);1777 /proc /sys /root/images/mondo /root/images/mindi ", 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); 1778 1778 1779 1779 log_msg(2, "Excluding paths = '%s'", exclude_paths);
Note:
See TracChangeset
for help on using the changeset viewer.