Changeset 2769 in MondoRescue for branches/2.2.9/mondo/src/common/libmondo-devices.c
- Timestamp:
- Apr 21, 2011, 1:48:52 PM (13 years ago)
- File:
-
- 1 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) {
Note:
See TracChangeset
for help on using the changeset viewer.