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)
Wed, Mar 4, 5:23 PM
Unknown Object (File)
Mon, Mar 2, 9:00 PM
Unknown Object (File)
Mon, Mar 2, 3:43 AM
Unknown Object (File)
Sun, Mar 1, 10:43 AM
Unknown Object (File)
Sat, Feb 28, 4:52 AM
Unknown Object (File)
Mon, Feb 23, 12:13 AM
Unknown Object (File)
Thu, Feb 12, 3:42 AM
Unknown Object (File)
Wed, Feb 11, 4:02 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

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.