Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Feb 2026 18:59:36 +0000
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: b4305c90a3be - main - lesspipe: Allow zstd to operate on a symlink
Message-ID:  <699ca398.41417.5923747d@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=b4305c90a3be7e1a40b76545b8b761fdbda5c309

commit b4305c90a3be7e1a40b76545b8b761fdbda5c309
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2026-02-04 16:56:37 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2026-02-23 18:57:58 +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
---
 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?699ca398.41417.5923747d>