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)
Tue, Apr 28, 10:24 AM
Unknown Object (File)
Mon, Apr 27, 7:49 AM
Unknown Object (File)
Sun, Apr 19, 4:30 AM
Unknown Object (File)
Fri, Apr 17, 3:19 AM
Unknown Object (File)
Sat, Apr 11, 4:08 AM
Unknown Object (File)
Wed, Apr 8, 4:38 AM
Unknown Object (File)
Sat, Apr 4, 11:00 PM
Unknown Object (File)
Mar 28 2026, 1:21 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.