freebsd-ports/sysutils/dolly/files/extra-bzip2-patch-dolly.c
Mario Sergio Fujikawa Ferreira 10379bfe47 New port dolly version 0.57: A program to clone harddisks/partitions
over a fast switched network
2004-07-20 22:08:44 +00:00

20 lines
775 B
C

--- dolly.c.orig Fri Jul 16 13:04:17 2004
+++ dolly.c Fri Jul 16 13:06:23 2004
@@ -200,7 +200,7 @@
if((sp = strchr(sp2, ' ')) == NULL) {
sp = sp2 + strlen(sp2);
}
- if(compressed_in && (strncmp(&sp2[sp - sp2 - 3], ".gz", 3) != 0)) {
+ if(compressed_in && (strncmp(&sp2[sp - sp2 - 4], ".bz2", 4) != 0)) {
char tmp_str[256];
strncpy(tmp_str, sp2, sp - sp2);
tmp_str[sp - sp2] = '\0';
@@ -235,7 +235,7 @@
if((sp = strchr(sp2, ' ')) == NULL) {
sp = sp2 + strlen(sp2);
}
- if(compressed_out && (strncmp(&sp2[sp - sp2 - 3], ".gz", 3) != 0)) {
+ if(compressed_out && (strncmp(&sp2[sp - sp2 - 4], ".bz2", 4) != 0)) {
char tmp_str[256];
strncpy(tmp_str, sp2, sp - sp2);
tmp_str[sp - sp2] = '\0';