Changeset 1644 in MondoRescue for branches/2.2.5/mondo/src/common/libmondo-devices.c
- Timestamp:
- Sep 23, 2007, 2:41:29 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.5/mondo/src/common/libmondo-devices.c
r1575 r1644 855 855 } 856 856 857 sprintf(mountpoint, " /tmp/cd.%d", (int) (random() % 32767));857 sprintf(mountpoint, "%s/cd.mnt", bkpinfo->tmpdir); 858 858 make_hole_for_dir(mountpoint); 859 859 … … 1732 1732 run_program_and_log_output("umount " MNT_CDROM, 5); 1733 1733 } 1734 system("mkdir -p /tmp/isodir &> /dev/null"); 1734 sprintf(tmp, "mkdir -p %s/isodir &> /dev/null", bkpinfo->tmpdir); 1735 system(tmp); 1735 1736 sprintf(tmp, "%s/%s/%s-%d.iso", bkpinfo->isodir, 1736 1737 bkpinfo->nfs_remote_dir, bkpinfo->prefix, 1737 1738 cd_number_i_want); 1738 1739 if (!does_file_exist(tmp)) { 1739 sprintf(tmp, " /tmp/isodir/%s/%s-%d.iso",1740 sprintf(tmp, "%s/isodir/%s/%s-%d.iso", bkpinfo->tmpdir, 1740 1741 bkpinfo->nfs_remote_dir, bkpinfo->prefix, 1741 1742 cd_number_i_want); 1742 1743 if (does_file_exist(tmp)) { 1743 1744 log_msg(1, 1744 "FIXME - hacking bkpinfo->isodir from '%s' to /tmp/isodir",1745 bkpinfo->isodir );1746 s trcpy(bkpinfo->isodir, "/tmp/isodir");1745 "FIXME - hacking bkpinfo->isodir from '%s' to %s/isodir", 1746 bkpinfo->isodir, bkpinfo->tmpdir); 1747 sprintf(bkpinfo->isodir, "%s/isodir", bkpinfo->tmpdir); 1747 1748 } 1748 1749 } … … 2117 2118 } 2118 2119 if (bkpinfo->disaster_recovery) { 2119 system("umount /tmp/isodir 2> /dev/null"); 2120 sprintf(command ,"umount %s/isodir 2> /dev/null", bkpinfo->tmpdir); 2121 system(command); 2120 2122 if (!popup_and_get_string 2121 2123 ("NFS share", "Which remote NFS share should I mount?", … … 2126 2128 } 2127 2129 if (!is_this_device_mounted(bkpinfo->nfs_mount)) { 2128 sprintf(bkpinfo->isodir, "/tmp/isodir.mondo.%d", 2129 (int) (random() % 32768)); 2130 sprintf(bkpinfo->isodir, "%s/nfsdir", bkpinfo->tmpdir); 2130 2131 sprintf(command, "mkdir -p %s", bkpinfo->isodir); 2131 2132 run_program_and_log_output(command, 5);
Note:
See TracChangeset
for help on using the changeset viewer.