diff options
Diffstat (limited to 'sysutils/dolly/files/extra-bzip2-patch-dolly.c')
-rw-r--r-- | sysutils/dolly/files/extra-bzip2-patch-dolly.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sysutils/dolly/files/extra-bzip2-patch-dolly.c b/sysutils/dolly/files/extra-bzip2-patch-dolly.c new file mode 100644 index 000000000000..83c2c783740b --- /dev/null +++ b/sysutils/dolly/files/extra-bzip2-patch-dolly.c @@ -0,0 +1,20 @@ +--- 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'; |