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, Jun 29, 5:59 PM
Unknown Object (File)
Sun, Jun 28, 9:54 AM
Unknown Object (File)
Mon, Jun 22, 12:36 AM
Unknown Object (File)
Sat, Jun 20, 6:22 AM
Unknown Object (File)
Thu, Jun 11, 11:56 AM
Unknown Object (File)
Thu, Jun 11, 1:48 AM
Unknown Object (File)
Jun 5 2026, 4:35 PM
Unknown Object (File)
Jun 5 2026, 1:18 PM
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.