- Timestamp:
- Sep 6, 2016, 5:38:38 PM (9 years ago)
- Location:
- branches/3.2/mondo/src/common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mondo/src/common/libmondo-devices.c
r3594 r3604 2196 2196 */ 2197 2197 #ifdef __FreeBSD__ 2198 mr_asprintf(tmp, "%s", call_program_and_get_last_line_of_output(" LANGUAGE=Cdf -m -P -t nonfs,msdosfs,ntfs,ntfs-3g,vmhgfs,smbfs,smb,cifs,afs,gfs,ocfs,ocfs2,mvfs,nsspool,nssvol | grep -vE \"none|Filesystem\" | awk '{printf \"%s %s\\n\", $4, $6;}' | sort -nr | awk '{print $NF;}' | while read x ; do test -w $x && echo $x && break ; done"));2198 mr_asprintf(tmp, "%s", call_program_and_get_last_line_of_output("df -m -P -t nonfs,msdosfs,ntfs,ntfs-3g,vmhgfs,smbfs,smb,cifs,afs,gfs,ocfs,ocfs2,mvfs,nsspool,nssvol | grep -vE \"none|Filesystem\" | awk '{printf \"%s %s\\n\", $4, $6;}' | sort -nr | awk '{print $NF;}' | while read x ; do test -w $x && echo $x && break ; done")); 2199 2199 #else 2200 mr_asprintf(tmp, "%s", call_program_and_get_last_line_of_output(" LANGUAGE=Cdf -m -P -x nfs -x nfs4 -x fuse.sshfs -x fuse -x vfat -x ntfs -x ntfs-3g -x vmhgfs -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 -nr | awk '{print $NF;}' | while read x ; do test -w $x && echo $x && break ; done"));2200 mr_asprintf(tmp, "%s", call_program_and_get_last_line_of_output("df -m -P -x nfs -x nfs4 -x fuse.sshfs -x fuse -x vfat -x ntfs -x ntfs-3g -x vmhgfs -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 -nr | awk '{print $NF;}' | while read x ; do test -w $x && echo $x && break ; done")); 2201 2201 #endif 2202 2202 -
branches/3.2/mondo/src/common/libmondo-fork.c
r3568 r3604 45 45 /*@ pointers **************************************************** */ 46 46 FILE *fin = NULL; 47 char *eng_call = NULL; 47 48 48 49 /*@ initialize data ********************************************* */ … … 52 53 53 54 assert_string_is_neither_NULL_nor_zerolength(call); 54 log_msg(5, "cpaglloo called with '%s'", call); 55 if ((fin = popen(call, "r"))) { 55 mr_asprintf(eng_call,"LANG=C LANGUAGE=C %s",call); 56 log_msg(5, "cpaglloo called with '%s'", eng_call); 57 if ((fin = popen(eng_call, "r"))) { 56 58 while (!feof(fin)) { 57 59 mr_getline(tmp, fin); … … 66 68 log_OS_error("Unable to open resulting file"); 67 69 } 70 mr_free(eng_call); 68 71 strip_spaces(result); 69 72 log_msg(5, "cpaglloo returns '%s'", result);
Note:
See TracChangeset
for help on using the changeset viewer.