Changeset 2325 in MondoRescue for branches/2.2.10/mondo/src/common/libmondo-filelist.c
- Timestamp:
- Aug 18, 2009, 3:19:15 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mondo/src/common/libmondo-filelist.c
r2324 r2325 693 693 /** 694 694 * Get the number of the last fileset in the backup. 695 * @param bkpinfo The backup information structure. Only the @c bkpinfo->tmpdir field is used.696 695 * @return The last filelist number. 697 696 * @note This function should only be called at restore-time. … … 700 699 { 701 700 /*@ buffers ***************************************************** */ 702 char val_sz[MAX_STR_LEN];701 char *val_sz = NULL; 703 702 char *cfg_fname = NULL; 704 703 … … 710 709 assert(bkpinfo != NULL); 711 710 712 strcpy(val_sz,"");713 711 mr_asprintf(cfg_fname, "%s/mondo-restore.cfg", bkpinfo->tmpdir); 714 read_cfg_var(cfg_fname, "last-filelist-number", val_sz);712 val_sz = read_cfg_var(cfg_fname, "last-filelist-number"); 715 713 mr_free(cfg_fname); 716 714 715 if (val_sz == NULL) { 716 mr_asprintf(val_sz, ""); 717 } 717 718 val_i = atoi(val_sz); 719 mr_free(val_sz); 720 718 721 if (val_i <= 0) { 719 722 val_i = 500;
Note:
See TracChangeset
for help on using the changeset viewer.