Xref: utzoo comp.sources.bugs:793 comp.unix.xenix:1537 Path: utzoo!mnetor!uunet!husc6!think!ames!hao!oddjob!gargoyle!jpusa1!stu From: stu@jpusa1.UUCP (Stu Heiss) Newsgroups: comp.sources.bugs,comp.unix.xenix Subject: fix for xenix large model compress Message-ID: <777@jpusa1.UUCP> Date: 22 Feb 88 01:26:17 GMT Reply-To: stu@jpusa1.UUCP (Stu Heiss) Organization: JPUSA - Chicago, IL Lines: 90 Another bug in the xenix large model version of compress... This shows up on uncompressing so your compressed files are probably ok (unless there are other bugs lurking). Symptoms are mangled files after zcat'ing or uncompress'ing. This patch assumes you have applied the sco-compress diffs and really only changes the macro de_stack. I also have the recent bugfix installed to not unlink when zcat'ing so the patch will probably fail if you don't. The relevent line is #define de_stack if you have trouble with patch. RCS file: RCS/compress.c,v retrieving revision 4.3 retrieving revision 4.2 diff -c -r4.3 -r4.2 *** /tmp/,RCSt1a02922 Wed Feb 10 15:29:42 1988 --- /tmp/,RCSt2a02922 Wed Feb 10 15:29:46 1988 *************** *** 127,133 * James A. Woods (decvax!ihnp4!ames!jaw) * Joe Orost (decvax!vax135!petsd!joe) * ! * $Header: compress.c,v 4.3 88/02/10 15:28:03 stu Exp $ * $Log: compress.c,v $ * Revision 4.3 88/02/10 15:28:03 stu * xenix decompress bug fix --- 127,133 ----- * James A. Woods (decvax!ihnp4!ames!jaw) * Joe Orost (decvax!vax135!petsd!joe) * ! * $Header: compress.c,v 4.2 88/02/09 09:27:09 stu Exp $ * $Log: compress.c,v $ * Revision 4.2 88/02/09 09:27:09 stu * fix to not do error unlink if zcat *************** *** 129,137 * * $Header: compress.c,v 4.3 88/02/10 15:28:03 stu Exp $ * $Log: compress.c,v $ - * Revision 4.3 88/02/10 15:28:03 stu - * xenix decompress bug fix - * * Revision 4.2 88/02/09 09:27:09 stu * fix to not do error unlink if zcat * --- 129,134 ----- * * $Header: compress.c,v 4.2 88/02/09 09:27:09 stu Exp $ * $Log: compress.c,v $ * Revision 4.2 88/02/09 09:27:09 stu * fix to not do error unlink if zcat * *************** *** 251,257 * Add variable bit length output. * */ ! static char rcs_ident[] = "$Header: compress.c,v 4.3 88/02/10 15:28:03 stu Exp $"; #include #include --- 248,254 ----- * Add variable bit length output. * */ ! static char rcs_ident[] = "$Header: compress.c,v 4.2 88/02/09 09:27:09 stu Exp $"; #include #include *************** *** 289,295 #define tab_prefixof(i) codetabof(i) # define tab_suffixof(i) ((char_type huge *)(htab))[i] ! # define de_stack ((char_type huge *)&tab_suffixof((code_int)1<