Changeset 1043 in MondoRescue for trunk/mondo/src/mondorestore/mondo-restore.c
- Timestamp:
- Jan 8, 2007, 11:31:22 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/src/mondorestore/mondo-restore.c
r973 r1043 1002 1002 char *outfile_fname = NULL; 1003 1003 char *tmp = NULL; 1004 char *tmp0 = NULL; 1004 1005 char *tmp1 = NULL; 1005 1006 char *tmp2 = NULL; … … 1157 1158 for (sliceno = 1, finished = FALSE; !finished;) { 1158 1159 tmp = slice_fname(bigfileno, sliceno, ARCHIVES_PATH, ""); 1160 tmp0 = slice_fname(bigfileno, sliceno, ARCHIVES_PATH, "gz"); 1159 1161 tmp1 = slice_fname(bigfileno, sliceno, ARCHIVES_PATH, "lzo"); 1160 1162 tmp2 = slice_fname(bigfileno, sliceno, ARCHIVES_PATH, "bz2"); 1161 if (!does_file_exist(tmp) && !does_file_exist(tmp1) && 1163 if (!does_file_exist(tmp) && 1164 !does_file_exist(tmp0) && 1165 !does_file_exist(tmp1) && 1162 1166 !does_file_exist(tmp2)) { 1163 1167 log_msg(3, … … 1190 1194 if (does_file_exist(tmp1)) { 1191 1195 mr_asprintf(&bzip2_command, "lzop -dc %s 2>> %s",tmp1, MONDO_LOGFILE); 1196 } else if (does_file_exist(tmp0)) { 1197 mr_asprintf(&bzip2_command, "gzip -dc %s 2>> %s",tmp0, MONDO_LOGFILE); 1192 1198 } else if (does_file_exist(tmp2)) { 1193 1199 mr_asprintf(&bzip2_command, "bzip2 -dc %s 2>> %s",tmp2, MONDO_LOGFILE); … … 1616 1622 if (strstr(tarball_fname, ".bz2")) { 1617 1623 mr_asprintf(&executable, "bzip2"); 1624 } else if (strstr(tarball_fname, ".gz")) { 1625 strcpy(executable, "gzip"); 1626 } else if (strstr(tarball_fname, ".gz")) { 1627 strcpy(executable, "gzip"); 1618 1628 } else if (strstr(tarball_fname, ".lzo")) { 1619 1629 mr_asprintf(&executable, "lzop");
Note:
See TracChangeset
for help on using the changeset viewer.