Changeset 1644 in MondoRescue for branches/2.2.5/mondo/src/common/libmondo-tools.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-tools.c
r1437 r1644 999 999 bkpinfo->scratchdir[0] = '\0'; 1000 1000 bkpinfo->make_filelist = TRUE; // unless -J supplied to mondoarchive 1001 sprintf(bkpinfo->tmpdir, " /tmp/tmpfs/mondo.tmp.%d", (int) (random() % 32768)); // for mondorestore1001 sprintf(bkpinfo->tmpdir, "%s/tmpfs/mondo.tmp.%d", "/tmp", (int) (random() % 32768)); // for mondorestore 1002 1002 bkpinfo->optimal_set_size = 0; 1003 1003 bkpinfo->backup_media_type = none; … … 1227 1227 fatal_error("Please reinstall Mondo and Mindi."); 1228 1228 } 1229 if (run_program_and_log_output1230 ("mindi --makemountlist /tmp/mountlist.txt.test", 5)) {1231 log_to_screen1232 ("Mindi --makemountlist /tmp/mountlist.txt.test failed for some reason.");1229 sprintf(tmp, "mindi --makemountlist %s/mountlist.txt.test", bkpinfo->tmpdir); 1230 if (run_program_and_log_output(tmp, 5)) { 1231 sprintf(tmp, "mindi --makemountlist %s/mountlist.txt.test failed for some reason.", bkpinfo->tmpdir); 1232 log_to_screen(tmp); 1233 1233 log_to_screen 1234 1234 ("Please run that command by hand and examine /var/log/mindi.log"); … … 1494 1494 return (1); 1495 1495 } 1496 strcpy(tempfile, 1497 call_program_and_get_last_line_of_output 1498 ("mktemp -q /tmp/mojo-jojo.blah.XXXXXX")); 1496 sprintf(tempfile, "%s/mojo-jojo.blah", bkpinfo->tmpdir); 1499 1497 if (does_file_exist(config_file)) { 1500 1498 sprintf(command, "grep -vE '^%s .*$' %s > %s",
Note:
See TracChangeset
for help on using the changeset viewer.