Changeset 2421 in MondoRescue for branches/2.2.10/mondo/src/common/libmondo-tools.c
- Timestamp:
- Sep 24, 2009, 3:50:38 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mondo/src/common/libmondo-tools.c
r2406 r2421 803 803 bkpinfo = (struct s_bkpinfo *)mr_malloc(sizeof(struct s_bkpinfo)); 804 804 805 /* We need tmpdir as early as possible for further function calls */ 806 bkpinfo->tmpdir = NULL; // Really setup after 807 setup_tmpdir(NULL); 808 805 809 /* Initialized in same order as in the structure declaration to detect errors more easily */ 806 810 bkpinfo->media_device = NULL; … … 822 826 bkpinfo->use_star = FALSE; 823 827 bkpinfo->internal_tape_block_size = DEFAULT_INTERNAL_TAPE_BLOCK_SIZE; 824 bkpinfo->disaster_recovery = (am_I_in_disaster_recovery_mode()? TRUE : FALSE);828 bkpinfo->disaster_recovery = am_I_in_disaster_recovery_mode(); 825 829 if (bkpinfo->disaster_recovery) { 826 830 mr_asprintf(bkpinfo->isodir, "%s", "/"); … … 829 833 } 830 834 mr_asprintf(bkpinfo->prefix, "%s", STD_PREFIX); 835 /* bkpinfo->tmpdir is here in the struct */ 831 836 bkpinfo->scratchdir = NULL; // Really setup after 832 bkpinfo->tmpdir = NULL; // Really setup after833 837 bkpinfo->optimal_set_size = 0; 834 838 bkpinfo->backup_media_type = none; … … 857 861 bkpinfo->restore_mode = interactive; 858 862 859 setup_tmpdir(NULL);860 863 sensibly_set_scratchdir(); 861 864 } … … 1364 1367 va_end(args); 1365 1368 1366 // do not slow down the progran if standard debug level1367 // must be enabled: if no flush, the log won't be up-to-date if there1368 // is a segfault1369 //if (g_dwDebugLevel != 1)1370 1371 1369 fprintf(fout, "\n"); 1372 1370 paranoid_fclose(fout);
Note:
See TracChangeset
for help on using the changeset viewer.