Changeset 729 in MondoRescue for trunk/mondo/mondo/common


Ignore:
Timestamp:
Jul 30, 2006, 4:06:39 PM (18 years ago)
Author:
Bruno Cornec
Message:

merge -r686:728 $SVN_M/branches/stable

Location:
trunk/mondo/mondo/common
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/mondo/mondo/common/libmondo-archive.c

    r689 r729  
    30763076    } else {
    30773077        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        }
    30793083        if (!(fin = popen(command, "r"))) {
    30803084            log_OS_error("Unable to popen-in command");
  • trunk/mondo/mondo/common/libmondo-devices.c

    r689 r729  
    15751575            if (bkpinfo->media_device != NULL) {
    15761576                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."),
    15781578                        media_descriptor_string(bkpinfo->
    15791579                                                backup_media_type),
     
    20212021{
    20222022    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;}'"));
    20242024    /* BERLIOS : Useless
    20252025    asprintf(&exclude_these_devices,
    20262026           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;}'"));
    20282028           */
    20292029}
     
    20722072#ifdef __FreeBSD__
    20732073    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;}'");
    20752075#else
    20762076    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;}'");
    20782078#endif
    20792079
  • trunk/mondo/mondo/common/libmondo-filelist.c

    r689 r729  
    13551355        // 2.6 has /sys as a proc-type thing -- must be excluded
    13561356        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);
    13591359#else
    13601360        // On BSD, for example, /sys is the kernel sources -- don't exclude
    13611361        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);
    13641364#endif
    13651365        system(tmp);
Note: See TracChangeset for help on using the changeset viewer.