Date: Thu, 05 Mar 2026 23:55:37 +0000 From: Ed Maste <emaste@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 68125692efac - stable/15 - lesspipe: Allow zstd to operate on a symlink Message-ID: <69aa17f9.1802c.6010194f@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch stable/15 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=68125692efacbce537e14ba16ecedff750cccc36 commit 68125692efacbce537e14ba16ecedff750cccc36 Author: Ed Maste <emaste@FreeBSD.org> AuthorDate: 2026-02-04 16:56:37 +0000 Commit: Ed Maste <emaste@FreeBSD.org> CommitDate: 2026-03-05 23:55:24 +0000 lesspipe: Allow zstd to operate on a symlink 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. Reviewed by: delphij Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D55101 (cherry picked from commit b4305c90a3be7e1a40b76545b8b761fdbda5c309) --- usr.bin/less/lesspipe.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/less/lesspipe.sh b/usr.bin/less/lesspipe.sh index 253914b8b3ee..6fc6cc471638 100644 --- a/usr.bin/less/lesspipe.sh +++ b/usr.bin/less/lesspipe.sh @@ -21,7 +21,7 @@ case "$1" in exec lzma -d -c "$1" 2>/dev/null ;; *.zst) - exec zstd -d -q -c "$1" 2>/dev/null + exec zstd -d -q -c -f "$1" 2>/dev/null ;; *) exec cat "$1" 2>/dev/null ;;home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69aa17f9.1802c.6010194f>
