Changeset 1176 in MondoRescue for trunk/mondo/src/common/libmondo-devices.c
- Timestamp:
- Feb 16, 2007, 2:16:14 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/src/common/libmondo-devices.c
r1161 r1176 19 19 #include "mr_mem.h" 20 20 #include "mr_msg.h" 21 #include "mr_str.h" 21 22 22 23 #include <sys/ioctl.h> … … 41 42 42 43 extern bool g_ISO_restore_mode; 43 extern struct s_bkpinfo *g_bkpinfo_DONTUSETHIS;44 44 extern char *g_erase_tmpdir_and_scratchdir; 45 45 extern char *g_selfmounted_isodir; … … 1093 1093 1094 1094 FILE *pin = NULL; 1095 bool retval ;1095 bool retval = FALSE; 1096 1096 size_t n = 0; 1097 1097 assert_string_is_neither_NULL_nor_zerolength(format); … … 1112 1112 if (!pin) { 1113 1113 log_OS_error("Unable to read good formats"); 1114 retval = FALSE;1115 1114 } else { 1116 1115 mr_getline(&good_formats, &n , pin); … … 1118 1117 log_OS_error("Cannot pclose good formats"); 1119 1118 } 1120 strip_spaces(good_formats);1119 mr_strip_spaces(good_formats); 1121 1120 // " ntfs 7 " -- um, cheating much? :) 1122 1121 mr_asprintf(&tmp, " %s swap lvm raid ntfs 7 ",good_formats); … … 1126 1125 if (strstr(good_formats, format_sz)) { 1127 1126 retval = TRUE; 1128 } else {1129 retval = FALSE;1130 1127 } 1131 1128 mr_free(good_formats); … … 1693 1690 // check whether already mounted - we better remove 1694 1691 // surrounding spaces and trailing '/' for this 1695 /* BERLIOS: Useless 1696 strip_spaces(bkpinfo->nfs_mount); 1697 */ 1692 mr_strip_spaces(bkpinfo->nfs_mount); 1698 1693 if (bkpinfo->nfs_mount[strlen(bkpinfo->nfs_mount) - 1] == '/') 1699 1694 bkpinfo->nfs_mount[strlen(bkpinfo->nfs_mount) - 1] = '\0'; … … 2270 2265 for (mr_getline(¤t_drive, &n, pdrives); !feof(pdrives); 2271 2266 mr_getline(¤t_drive, &n, pdrives)) { 2272 strip_spaces(current_drive);2267 mr_strip_spaces(current_drive); 2273 2268 log_it("looking at drive %s's MBR", current_drive); 2274 2269 if (does_string_exist_in_boot_block(current_drive, "GRUB")) {
Note:
See TracChangeset
for help on using the changeset viewer.