Changeset 3614 in MondoRescue for branches/3.2/mondo/src/common/libmondo-devices.c
- Timestamp:
- Nov 18, 2016, 5:31:43 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mondo/src/common/libmondo-devices.c
r3610 r3614 24 24 #include "libmondo-stream-EXT.h" 25 25 26 extern void mr_strip_spaces(char *);27 28 #include <sys/types.h>29 26 #ifdef __FreeBSD__ 30 27 #define DKTYPENAMES … … 1040 1037 } else { 1041 1038 mr_getline(p, pin); 1042 mr_asprintf(good_formats, " %s",p);1039 good_formats = mr_strip_spaces(p); 1043 1040 mr_free(p); 1044 1041 (void)pclose(pin); 1045 mr_strip_spaces(good_formats);1046 1042 mr_strcat(good_formats, " swap lvm raid ntfs-3g ntfs 7 "); // " ntfs 7 " -- um, cheating much? :) 1047 1043 if (strstr(good_formats, format_sz)) { … … 2461 2457 } 2462 2458 mr_free(bkpinfo->netfs_mount); 2463 mr_asprintf(bkpinfo->netfs_mount, "%s", p); 2459 // check whether already mounted - we better remove 2460 // surrounding spaces and trailing '/' for this 2461 bkpinfo->netfs_mount = mr_strip_spaces(p); 2464 2462 if (!bkpinfo->restore_data) { 2465 2463 if ((compression_type = which_compression_type()) == NULL) { … … 2473 2471 } 2474 2472 } 2475 // check whether already mounted - we better remove2476 // surrounding spaces and trailing '/' for this2477 mr_strip_spaces(bkpinfo->netfs_mount);2478 2473 if (bkpinfo->netfs_mount[strlen(bkpinfo->netfs_mount) - 1] == '/') 2479 2474 bkpinfo->netfs_mount[strlen(bkpinfo->netfs_mount) - 1] = '\0'; … … 2607 2602 } 2608 2603 mr_free(bkpinfo->netfs_remote_dir); 2609 mr_asprintf(bkpinfo->netfs_remote_dir, "%s", tmp1);2610 2611 2604 // check whether writable - we better remove surrounding spaces for this 2612 mr_strip_spaces(bkpinfo->netfs_remote_dir);2605 bkpinfo->netfs_remote_dir = mr_strip_spaces(tmp1); 2613 2606 2614 2607 if (!popup_and_get_string("Prefix.", "Please enter the prefix that will be prepended to your ISO filename. Example: machine1 to obtain machine1-[1-9]*.iso files", bkpinfo->prefix, MAX_STR_LEN / 4)) {
Note:
See TracChangeset
for help on using the changeset viewer.