Changeset 2769 in MondoRescue for branches/2.2.9/mondo/src/common
- Timestamp:
- Apr 21, 2011, 1:48:52 PM (14 years ago)
- Location:
- branches/2.2.9/mondo/src/common
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mondo/src/common/libmondo-devices.c
r2745 r2769 1355 1355 { 1356 1356 char *mount_cmd; 1357 char *mountdir = NULL; 1357 1358 int i, res; 1358 1359 #ifdef __FreeBSD__ … … 1397 1398 1398 1399 } else if (bkpinfo->backup_media_type == iso) { 1400 if (bkpinfo->subdir) { 1401 mr_asprintf(&mountdir, "%s/%s", bkpinfo->isodir, bkpinfo->subdir); 1402 } else { 1403 mr_asprintf(&mountdir, "%s", bkpinfo->isodir); 1404 } 1399 1405 #ifdef __FreeBSD__ 1400 sprintf(mount_cmd, "%s/%s-%d.iso", bkpinfo->isodir,1406 sprintf(mount_cmd, "%s/%s-%d.iso", mountdir, 1401 1407 bkpinfo->prefix, g_current_media_number); 1402 1408 mddev = make_vn(mount_cmd); … … 1404 1410 #else 1405 1411 sprintf(mount_cmd, "mount %s/%s-%d.iso -t iso9660 -o loop,ro %s", 1406 bkpinfo->isodir, bkpinfo->prefix, g_current_media_number, MNT_CDROM);1412 mountdir, bkpinfo->prefix, g_current_media_number, MNT_CDROM); 1407 1413 #endif 1408 1414 } else if (bkpinfo->backup_media_type == usb) { -
branches/2.2.9/mondo/src/common/libmondo-tools.c
r2751 r2769 799 799 bkpinfo->netfs_remote_dir[0] = '\0'; 800 800 bkpinfo->exclude_paths = NULL; 801 bkpinfo->subdir = NULL; 801 802 bkpinfo->postnuke_tarball[0] = '\0'; 802 803 bkpinfo->wipe_media_first = FALSE; -
branches/2.2.9/mondo/src/common/mondostructures.h
r2697 r2769 581 581 */ 582 582 char *netfs_user; 583 584 /** 585 * The potential subdirectory under which are located ISO images on HDD (restore mode only) 586 */ 587 char *subdir; 583 588 584 589 /** -
branches/2.2.9/mondo/src/common/newt-specific.c
r2700 r2769 449 449 mr_free(bkpinfo->exclude_devs); 450 450 mr_free(bkpinfo->exclude_paths); 451 mr_free(bkpinfo->subdir); 451 452 452 453 /* Then free the structure */
Note:
See TracChangeset
for help on using the changeset viewer.