Page MenuHomeFreeBSD

lesspipe: Allow zstd to operate on a symlink
ClosedPublic

Authored by emaste on Feb 4 2026, 4:59 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jul 27, 4:39 PM
Unknown Object (File)
Sat, Jul 25, 2:23 AM
Unknown Object (File)
Mon, Jul 20, 7:29 AM
Unknown Object (File)
Sun, Jul 19, 10:51 PM
Unknown Object (File)
Sat, Jul 18, 6:48 PM
Unknown Object (File)
Sat, Jul 18, 2:54 PM
Unknown Object (File)
Wed, Jul 15, 7:06 AM
Unknown Object (File)
Wed, Jul 15, 7:06 AM
Subscribers

Details

Summary
By default zstd refuses to operate on symlinks, so for example
`zless /var/crash/vmcore.last.zst` failed to view the uncompressed core
file.  Add -f to the zstd command line to allow operation on symlinks.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

emaste requested review of this revision.Feb 4 2026, 4:59 PM
emaste created this revision.

I'd probably use zstdcat -q here but change LGTM as-is too.

This revision is now accepted and ready to land.Feb 5 2026, 4:56 AM
This revision was automatically updated to reflect the committed changes.

Ok - I went with the current version as I've been testing with it for a while, but have staged a switch to zstdcat in my local tree since I think it clearly matches our intention.