CVSROOT: /cvs Module name: src Changes by: t...@cvs.openbsd.org 2022/08/29 13:42:01
Modified files: usr.bin/compress: main.c Log message: Fix growth check in compress(1)/gzip(1) If a compressed file is larger than its expanded version, compress(1) and gzip(1) don't compress unless -f is given. As found by gkoehler, the check is not quite correct for very small files or files with sufficiently random data. Fix the check so that slight growth still triggers the check. ok millert