opnsense-ports/sysutils/dolly/files/extra-bzip2-patch-dolly.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01: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';