Changeset 3833 in MondoRescue for branches/3.3/mondo/src/mondorestore
- Timestamp:
- Mar 5, 2024, 1:24:48 AM (18 months ago)
- Location:
- branches/3.3/mondo/src/mondorestore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mondo/src/mondorestore/mondo-rstr-tools.c
r3830 r3833 1819 1819 void setup_MR_global_filenames() 1820 1820 { 1821 char *temppath;1822 1823 1821 assert(bkpinfo != NULL); 1824 1822 … … 1833 1831 malloc_string(g_isodir_format); 1834 1832 1835 temppath = bkpinfo->tmpdir; 1836 1837 sprintf(g_biggielist_txt, "%s/%s", temppath, BIGGIELIST_TXT_STUB); 1838 sprintf(g_filelist_full, "%s/%s", temppath, FILELIST_FULL_STUB); 1839 sprintf(g_filelist_imagedevs, "%s/tmp/filelist.imagedevs", temppath); 1840 // sprintf(g_imagedevs_pot, "%s/tmp/imagedevs.pot", temppath); 1833 sprintf(g_biggielist_txt, "%s/%s", bkpinfo->tmpdir, BIGGIELIST_TXT_STUB); 1834 sprintf(g_filelist_full, "%s/%s", bkpinfo->tmpdir, FILELIST_FULL_STUB); 1835 sprintf(g_filelist_imagedevs, "%s/tmp/filelist.imagedevs", bkpinfo->tmpdir); 1836 // sprintf(g_imagedevs_pot, "%s/tmp/imagedevs.pot", bkpinfo->tmpdir); 1841 1837 sprintf(g_imagedevs_restthese, "%s/tmp/imagedevs.restore-these", 1842 temppath);1838 bkpinfo->tmpdir); 1843 1839 if (bkpinfo->disaster_recovery) { 1844 1840 sprintf(g_mondo_cfg_file, "/%s", MONDO_CFG_FILE_STUB); 1845 1841 sprintf(g_mountlist_fname, "/%s", MOUNTLIST_FNAME_STUB); 1846 1842 } else { 1847 sprintf(g_mondo_cfg_file, "%s/%s", temppath, MONDO_CFG_FILE_STUB);1848 sprintf(g_mountlist_fname, "%s/%s", temppath, MOUNTLIST_FNAME_STUB);1843 sprintf(g_mondo_cfg_file, "%s/%s", bkpinfo->tmpdir, MONDO_CFG_FILE_STUB); 1844 sprintf(g_mountlist_fname, "%s/%s", bkpinfo->tmpdir, MOUNTLIST_FNAME_STUB); 1849 1845 } 1850 1846 } -
branches/3.3/mondo/src/mondorestore/mondorestore.c
r3832 r3833 2820 2820 2821 2821 log_msg(2, "Still here. Yay."); 2822 if (( strlen(bkpinfo->tmpdir) > 0) && (strstr(bkpinfo->tmpdir,"mondo.tmp.") != NULL)) {2822 if ((bkpinfo->tmpdir != NULL) && (strlen(bkpinfo->tmpdir) > 0) && (strstr(bkpinfo->tmpdir,"mondo.tmp.") != NULL)) { 2823 2823 mr_asprintf(tmp, "rm -Rf %s/*", bkpinfo->tmpdir); 2824 2824 run_program_and_log_output(tmp, FALSE);
Note:
See TracChangeset
for help on using the changeset viewer.