Changeset 998 in MondoRescue for branches/stable/mondo/src/mondorestore
- Timestamp:
- Dec 7, 2006, 2:01:34 AM (19 years ago)
- Location:
- branches/stable/mondo/src/mondorestore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/mondorestore/mondo-restore.c
r952 r998 1572 1572 if (does_file_exist 1573 1573 (slice_fname 1574 (bigfileno, sliceno, ARCHIVES_PATH, "gz"))) { 1575 strcpy(bzip2_command, "gzip"); 1576 strcpy(suffix, "gz"); 1577 } else 1578 if (does_file_exist 1579 (slice_fname 1574 1580 (bigfileno, sliceno, ARCHIVES_PATH, "bz2"))) { 1575 1581 strcpy(bzip2_command, "bzip2"); … … 2037 2043 if (strstr(tarball_fname, ".bz2")) { 2038 2044 strcpy(executable, "bzip2"); 2045 } else if (strstr(tarball_fname, ".gz")) { 2046 strcpy(executable, "gzip"); 2039 2047 } else if (strstr(tarball_fname, ".lzo")) { 2040 2048 strcpy(executable, "lzop"); -
branches/stable/mondo/src/mondorestore/mondo-rstr-compare.c
r541 r998 317 317 if (strstr(tarball_fname, ".bz2")) { 318 318 strcpy(compressor_exe, "bzip2"); 319 } else if (strstr(tarball_fname, ".gz")) { 320 strcpy(compressor_exe, "gzip"); 319 321 } else if (strstr(tarball_fname, ".lzo")) { 320 322 strcpy(compressor_exe, "lzop"); -
branches/stable/mondo/src/mondorestore/mondo-rstr-tools.c
r951 r998 1136 1136 if (strstr(value, "yes")) { 1137 1137 bkpinfo->use_lzo = TRUE; 1138 bkpinfo->use_gzip = FALSE; 1138 1139 strcpy(bkpinfo->zip_exe, "lzop"); 1139 1140 strcpy(bkpinfo->zip_suffix, "lzo"); 1140 1141 } else { 1141 read_cfg_var(cfg_file, "use- comp", value);1142 read_cfg_var(cfg_file, "use-gzip", value); 1142 1143 if (strstr(value, "yes")) { 1143 1144 bkpinfo->use_lzo = FALSE; 1144 strcpy(bkpinfo->zip_exe, "bzip2"); 1145 strcpy(bkpinfo->zip_suffix, "bz2"); 1145 bkpinfo->use_gzip = TRUE; 1146 strcpy(bkpinfo->zip_exe, "gzip"); 1147 strcpy(bkpinfo->zip_suffix, "gz"); 1146 1148 } else { 1147 bkpinfo->zip_exe[0] = bkpinfo->zip_suffix[0] = '\0'; 1149 read_cfg_var(cfg_file, "use-comp", value); 1150 if (strstr(value, "yes")) { 1151 bkpinfo->use_lzo = FALSE; 1152 bkpinfo->use_gzip = FALSE; 1153 strcpy(bkpinfo->zip_exe, "bzip2"); 1154 strcpy(bkpinfo->zip_suffix, "bz2"); 1155 } else { 1156 bkpinfo->zip_exe[0] = bkpinfo->zip_suffix[0] = '\0'; 1157 } 1148 1158 } 1149 1159 }
Note:
See TracChangeset
for help on using the changeset viewer.