Comment 2 for bug 1472834

Revision history for this message
Anthony Fok (foka) wrote :

If I am reading the logrotate 3.8.7 source code correctly, there is no mapping table between compresscmd and compressext, and a search for "xz", "bz" and "lzma" returns no result either.

Indeed, the only compression program that logrotate 3.8.7 knows about is gzip, and if compressext isn't defined in the config files, the default COMPRESS_EXT ".gz" is used instead. There is currently no "smart logic" to set the correct compressext automatically from compresscmd.

Perhaps this bug is best reported at logrotate's new home on GitHub at https://github.com/logrotate/logrotate. AFAICT, the bug still exists in the latest logrotate 3.9.2.