- Timestamp:
- Jan 19, 2006, 11:30:00 PM (19 years ago)
- Location:
- trunk
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/mondo/common/libmondo-filelist.c
r276 r334 1357 1357 // 2.6 has /sys as a proc-type thing -- must be excluded 1358 1358 asprintf(&tmp, 1359 "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",1359 "find %s -maxdepth %d -path /proc -prune -o -path /sys -prune -o -path /dev/shm -prune -o -path /media/floppy -prune -o -type d -a -print > %s 2> /dev/null", 1360 1360 dir, MAX_SKEL_DEPTH, skeleton_filelist); 1361 1361 #else 1362 1362 // On BSD, for example, /sys is the kernel sources -- don't exclude 1363 1363 asprintf(&tmp, 1364 "find %s -maxdepth %d -path /proc -prune -o - path /tmp -prune -o -type d -a -print > %s 2> /dev/null",1364 "find %s -maxdepth %d -path /proc -prune -o -type d -a -print > %s 2> /dev/null", 1365 1365 dir, MAX_SKEL_DEPTH, skeleton_filelist); 1366 1366 #endif … … 1606 1606 asprintf(&exclude_paths, " %s %s %s %s %s %s . .. \ 1607 1607 " MNT_CDROM " " MNT_FLOPPY " /media/cdrom /media/cdrecorder \ 1608 /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);1608 /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); 1609 1609 1610 1610 log_msg(2, "Excluding paths = '%s'", exclude_paths);
Note:
See TracChangeset
for help on using the changeset viewer.