Make the diagnostics a little more useful.

A word of wisdom, don't do this:

|	cd /usr/bin
|	for i in *
|	do
|		cp $i /tmp/a
|		gzip -9 < /tmp/a > $i
|	done

It will compress files with multiple links several times.  do it this way:

|	cd /usr/bin
|	for i in *
|	do
|		gunzip -f < $i > /tmp/a
|		gzip -9 < /tmp/a > $i
|	done
This commit is contained in:
Poul-Henning Kamp 1994-10-22 11:55:16 +00:00
parent 6aafb7e048
commit 8963028c59
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=3785

View File

@ -6,7 +6,7 @@
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*
* $Id$
* $Id: imgact_gzip.c,v 1.9 1994/10/22 11:40:27 phk Exp $
*
* This module handles execution of a.out files which have been run through
* "gzip". This saves diskspace, but wastes cpu-cycles and VM.
@ -327,7 +327,8 @@ Flush(void *vp, u_char * ptr, u_long siz)
if (gz->output == sizeof gz->a_out) {
i = do_aout_hdr(gz);
if (i == -1) {
gz->where = __LINE__;
if (!gz->where)
gz->where = __LINE__;
gz->error = ENOEXEC;
return ENOEXEC;
} else if (i) {