Changeset 332 in MondoRescue for branches/2.06


Ignore:
Timestamp:
Jan 19, 2006, 10:49:45 PM (18 years ago)
Author:
bcornec
Message:

/tmp was excluded systematically, which s a bad idea.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.06/mondo/mondo/common/libmondo-filelist.c

    r275 r332  
    15341534        // 2.6 has /sys as a proc-type thing -- must be excluded
    15351535        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",
    15371537                dir, MAX_SKEL_DEPTH, g_skeleton_filelist);
    15381538#else
    15391539        // On BSD, for example, /sys is the kernel sources -- don't exclude
    15401540        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",
    15421542                dir, MAX_SKEL_DEPTH, g_skeleton_filelist);
    15431543#endif
     
    17751775        sprintf(exclude_paths, " %s %s %s %s %s %s . .. \
    17761776" 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);
    17781778
    17791779        log_msg(2, "Excluding paths = '%s'", exclude_paths);
Note: See TracChangeset for help on using the changeset viewer.