Changeset 2443 in MondoRescue for branches/2.2.9/mondo/src/common
- Timestamp:
- Sep 29, 2009, 8:43:38 PM (16 years ago)
- Location:
- branches/2.2.9/mondo/src/common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mondo/src/common/libmondo-devices.c
r2436 r2443 2756 2756 mr_asprintf(&tmp, "%s", call_program_and_get_last_line_of_output("LANGUAGE=C df -m -P -t nonfs,msdosfs,ntfs,ntfs-3g,smbfs,smb,cifs,afs,gfs,ocfs,ocfs2,mvfs,nsspool,nssvol | grep -vE \"none|Filesystem\" | awk '{printf \"%s %s\\n\", $4, $6;}' | sort -n | tail -n1 | awk '{print $NF;}'")); 2757 2757 #else 2758 mr_asprintf(&tmp, "%s", call_program_and_get_last_line_of_output("LANGUAGE=C df -m -P -x nfs -x nfs4 -x fuse.sshfs -x vfat -x ntfs -x ntfs-3g -x smbfs -x smb -x cifs -x afs -x gfs -x ocfs -x ocfs2 -x mvfs -x nsspool -x nssvol -x iso9660 | grep -vE \"none|Filesystem|/dev/shm\" | awk '{printf \"%s %s\\n\", $4, $6;}' | sort -n | tail -n1 | awk '{print $NF;}'"));2758 mr_asprintf(&tmp, "%s", call_program_and_get_last_line_of_output("LANGUAGE=C df -m -P -x nfs -x nfs4 -x fuse.sshfs -x fuse -x vfat -x ntfs -x ntfs-3g -x smbfs -x smb -x cifs -x afs -x gfs -x ocfs -x ocfs2 -x mvfs -x nsspool -x nssvol -x iso9660 | grep -vE \"none|Filesystem|/dev/shm\" | awk '{printf \"%s %s\\n\", $4, $6;}' | sort -n | tail -n1 | awk '{print $NF;}'")); 2759 2759 #endif 2760 2760 -
branches/2.2.9/mondo/src/common/libmondo-tools.c
r2424 r2443 776 776 } 777 777 778 if (path != NULL) { 779 mr_asprintf(&tmp, "%s/mondo.tmp.XXXXXX", path); 780 } else if (getenv("TMPDIR")) { 778 /* Always take in account env first */ 779 if (getenv("TMPDIR")) { 781 780 mr_asprintf(&tmp, "%s/mondo.tmp.XXXXXX", getenv("TMPDIR")); 782 781 } else if (getenv("TMP")) { 783 782 mr_asprintf(&tmp, "%s/mondo.tmp.XXXXXX", getenv("TMP")); 783 } else if (path != NULL) { 784 mr_asprintf(&tmp, "%s/mondo.tmp.XXXXXX", path); 784 785 } else { 785 786 mr_asprintf(&tmp, "/tmp/mondo.tmp.XXXXXX");
Note:
See TracChangeset
for help on using the changeset viewer.