- Timestamp:
- Aug 30, 2015, 2:35:24 AM (10 years ago)
- Location:
- branches/3.2/mondo/src
- Files:
-
- 2 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__ -
branches/3.2/mondo/src/mondorestore/mondo-prep.c
r3438 r3448 640 640 char *tmp = NULL; 641 641 int res = 0; 642 int retval = 0;643 642 644 643 /** end ****************************************************************/ … … 787 786 log_to_screen(tmp); 788 787 mr_free(tmp); 789 } 788 790 789 retval += res; 791 790 paranoid_system("sync");
Note:
See TracChangeset
for help on using the changeset viewer.