Changeset 729 in MondoRescue for trunk/mondo/mondo/common
- Timestamp:
- Jul 30, 2006, 4:06:39 PM (18 years ago)
- Location:
- trunk/mondo/mondo/common
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/mondo/common/libmondo-archive.c
r689 r729 3076 3076 } else { 3077 3077 file_to_openin = biggie_filename; 3078 asprintf(&command, "md5sum '%s'", biggie_filename); 3078 if (strchr(biggie_filename,'\'') != NULL) { 3079 asprintf(&command, "md5sum \"%s\"", biggie_filename); 3080 } else { 3081 asprintf(&command, "md5sum '%s'", biggie_filename); 3082 } 3079 3083 if (!(fin = popen(command, "r"))) { 3080 3084 log_OS_error("Unable to popen-in command"); -
trunk/mondo/mondo/common/libmondo-devices.c
r689 r729 1575 1575 if (bkpinfo->media_device != NULL) { 1576 1576 asprintf(&tmp, 1577 _("I think I've found your %s burner at SCSI node %s; am I right on the money? "),1577 _("I think I've found your %s burner at SCSI node %s; am I right on the money? Say no if you have an IDE burner and you are running a 2.6 kernel. Instead, specify the IDE burner's /dev address at the next screen."), 1578 1578 media_descriptor_string(bkpinfo-> 1579 1579 backup_media_type), … … 2021 2021 { 2022 2022 return(call_program_and_get_last_line_of_output 2023 ("mount -t coda,ncpfs,nfs,smbfs,cifs | tr -s '\t' ' ' | cut -d' ' -f3 | tr -s '\n' ' ' | awk '{print $0;}'"));2023 ("mount -t coda,ncpfs,nfs,smbfs,cifs,mvfs | tr -s '\t' ' ' | cut -d' ' -f3 | tr -s '\n' ' ' | awk '{print $0;}'")); 2024 2024 /* BERLIOS : Useless 2025 2025 asprintf(&exclude_these_devices, 2026 2026 call_program_and_get_last_line_of_output 2027 ("tr -s '\t' ' ' < /etc/fstab | grep -E '( (coda|ncpfs|nfs|smbfs|cifs ) )' | cut -d' ' -f1 | tr -s '\n' ' ' | awk '{print $0;}'"));2027 ("tr -s '\t' ' ' < /etc/fstab | grep -E '( (coda|ncpfs|nfs|smbfs|cifs|mvfs) )' | cut -d' ' -f1 | tr -s '\n' ' ' | awk '{print $0;}'")); 2028 2028 */ 2029 2029 } … … 2072 2072 #ifdef __FreeBSD__ 2073 2073 tmp = call_program_and_get_last_line_of_output 2074 ("df -m -P -t nonfs,msdosfs,ntfs,smbfs,smb,cifs | tr -s '\t' ' ' | grep -vE \"none|Filesystem\" | awk '{printf \"%s %s\\n\", $4, $6;}' | sort -n | tail -n1 | awk '{print $NF;}'");2074 ("df -m -P -t nonfs,msdosfs,ntfs,smbfs,smb,cifs,mvfs | tr -s '\t' ' ' | grep -vE \"none|Filesystem\" | awk '{printf \"%s %s\\n\", $4, $6;}' | sort -n | tail -n1 | awk '{print $NF;}'"); 2075 2075 #else 2076 2076 tmp = call_program_and_get_last_line_of_output 2077 ("df -m -P -x nfs -x vfat -x ntfs -x smbfs -x smb -x cifs | sed 's/ /devdev/' | tr -s '\t' ' ' | grep -vE \"none|Filesystem|/dev/shm\" | awk '{printf \"%s %s\\n\", $4, $6;}' | sort -n | tail -n1 | awk '{print $NF;}'");2077 ("df -m -P -x nfs -x vfat -x ntfs -x smbfs -x smb -x cifs -x mvfs | sed 's/ /devdev/' | tr -s '\t' ' ' | grep -vE \"none|Filesystem|/dev/shm\" | awk '{printf \"%s %s\\n\", $4, $6;}' | sort -n | tail -n1 | awk '{print $NF;}'"); 2078 2078 #endif 2079 2079 -
trunk/mondo/mondo/common/libmondo-filelist.c
r689 r729 1355 1355 // 2.6 has /sys as a proc-type thing -- must be excluded 1356 1356 asprintf(&tmp, 1357 "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",1358 dir, MAX_SKEL_DEPTH, skeleton_filelist);1357 "find %s -maxdepth %d -fstype mvfs -prune -o -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", 1358 dir, MAX_SKEL_DEPTH, g_skeleton_filelist); 1359 1359 #else 1360 1360 // On BSD, for example, /sys is the kernel sources -- don't exclude 1361 1361 asprintf(&tmp, 1362 "find %s -maxdepth %d-path /proc -prune -o -type d -a -print > %s 2> /dev/null",1363 dir, MAX_SKEL_DEPTH, skeleton_filelist);1362 "find %s -maxdepth %d -fstype mvfs -prune -o -path /proc -prune -o -type d -a -print > %s 2> /dev/null", 1363 dir, MAX_SKEL_DEPTH, g_skeleton_filelist); 1364 1364 #endif 1365 1365 system(tmp);
Note:
See TracChangeset
for help on using the changeset viewer.