Changeset 3448 in MondoRescue for branches/3.2/mondo/src/common/libmondo-devices.c
- Timestamp:
- Aug 30, 2015, 2:35:24 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mondo/src/common/libmondo-devices.c
r3432 r3448 1068 1068 { 1069 1069 1070 /*@ pointers **************************************************** */ 1070 char *tmp = NULL; 1071 bool retval = FALSE; 1072 1073 mr_asprintf(tmp, "mr-device-mounted %s", device_raw); 1074 if (system(tmp) == 0) { 1075 retval = TRUE; 1076 } 1077 mr_free(tmp); 1078 return(retval) 1079 1080 /* previous C version replaced by a call to a perl script, fixing issues with symlinks between devices - RHEL7 e.g. 1071 1081 FILE *fin; 1072 1082 1073 /*@ buffers ***************************************************** */1074 1083 char *incoming = NULL; 1075 1084 char *device_with_tab = NULL; … … 1084 1093 #endif 1085 1094 1086 /*@ end vars **************************************************** */1087 1095 1088 1096 if (device_raw == NULL) { … … 1132 1140 return(retval); 1133 1141 } 1142 */ 1134 1143 1135 1144 #ifdef __FreeBSD__
Note:
See TracChangeset
for help on using the changeset viewer.