Fwd: Support for GZipped-Batches in sendbatch?

Frank D. Cringle fdc at cliwe.ping.de
Thu Jul 19 13:06:43 UTC 2001


Russ Allbery <rra at stanford.edu> writes:
> > From: Jochen Erwied <jochen at erwied.de>
> > To: inn-suggest at isc.org
> > Subject: Support for GZipped-Batches in sendbatch?
> > Date: Sun, 30 Jul 2000 14:45:14 +0200
[ ... ]
> > Relevant part in sendbatch is:
> 
> >     -g)
> >         COMP="; exec ${GZIP} ${GZIPFLAGS}"
> >         ECHO="echo '#! cunbatch'"
> >         continue
> >         ;;
> 
> I believe that should be gunbatch.

Note that rnews explicitly recognizes '#! cunbatch' and feeds the
batch to _PATH_GZIP -d in that case.  If the batcher inserts gunbatch
instead of cunbatch you are protecting the (vanishing?) minority who
have _PATH_GZIP pointing to /bin/compress, at the expense of those who
use gzip and then need to define DO_RNEWSPROGS and provide an
otherwise unnecessary gunbatch script.

I prefer to interpret the 'c' in cunbatch as generic 'compressed'
rather than as distinguishing the algorithm.  If need be, the receiver
can detect the algorithm by looking at the first bytes of the
compressed data, so encoding that information in the #! line is
redundant.  The #! line will not be fed blindly to a shell anyway
these days, so any receiver can be expected to inspect the beginning
of the batch before processing it.

-- 
Frank Cringle,      fdc at cliwe.ping.de
voice: (+49 7745) 928759; fax: 928761


More information about the inn-workers mailing list