Sun Apr 14 18:35:32 UTC 2024

patches/packages/less-653-x86_64-1_slack15.0.txz:  Upgraded.
  This update patches a security issue:
  less through 653 allows OS command execution via a newline character in the
  name of a file, because quoting is mishandled in filename.c. Exploitation
  typically requires use with attacker-controlled file names, such as the files
  extracted from an untrusted archive. Exploitation also requires the LESSOPEN
  environment variable, but this is set by default in many common cases.
  For more information, see:
    https://www.cve.org/CVERecord?id=CVE-2024-32487
  (* Security fix *)
This commit is contained in:
Patrick J Volkerding 2024-04-14 18:35:32 +00:00 committed by Eric Hameleers
parent 47084e3f2f
commit 1d9ca96a22
10 changed files with 437 additions and 65 deletions

View file

@ -11,9 +11,29 @@
<description>Tracking Slackware development in git.</description>
<language>en-us</language>
<id xmlns="http://www.w3.org/2005/Atom">urn:uuid:c964f45e-6732-11e8-bbe5-107b4450212f</id>
<pubDate>Fri, 12 Apr 2024 19:08:59 GMT</pubDate>
<lastBuildDate>Sat, 13 Apr 2024 11:30:26 GMT</lastBuildDate>
<pubDate>Sun, 14 Apr 2024 18:35:32 GMT</pubDate>
<lastBuildDate>Mon, 15 Apr 2024 11:30:29 GMT</lastBuildDate>
<generator>maintain_current_git.sh v 1.17</generator>
<item>
<title>Sun, 14 Apr 2024 18:35:32 GMT</title>
<pubDate>Sun, 14 Apr 2024 18:35:32 GMT</pubDate>
<link>https://git.slackware.nl/current/tag/?h=20240414183532</link>
<guid isPermaLink="false">20240414183532</guid>
<description>
<![CDATA[<pre>
patches/packages/less-653-x86_64-1_slack15.0.txz: Upgraded.
This update patches a security issue:
less through 653 allows OS command execution via a newline character in the
name of a file, because quoting is mishandled in filename.c. Exploitation
typically requires use with attacker-controlled file names, such as the files
extracted from an untrusted archive. Exploitation also requires the LESSOPEN
environment variable, but this is set by default in many common cases.
For more information, see:
https://www.cve.org/CVERecord?id=CVE-2024-32487
(* Security fix *)
</pre>]]>
</description>
</item>
<item>
<title>Fri, 12 Apr 2024 19:08:59 GMT</title>
<pubDate>Fri, 12 Apr 2024 19:08:59 GMT</pubDate>

View file

@ -1,3 +1,15 @@
Sun Apr 14 18:35:32 UTC 2024
patches/packages/less-653-x86_64-1_slack15.0.txz: Upgraded.
This update patches a security issue:
less through 653 allows OS command execution via a newline character in the
name of a file, because quoting is mishandled in filename.c. Exploitation
typically requires use with attacker-controlled file names, such as the files
extracted from an untrusted archive. Exploitation also requires the LESSOPEN
environment variable, but this is set by default in many common cases.
For more information, see:
https://www.cve.org/CVERecord?id=CVE-2024-32487
(* Security fix *)
+--------------------------+
Fri Apr 12 19:08:59 UTC 2024
extra/php81/php81-8.1.28-x86_64-1_slack15.0.txz: Upgraded.
This update fixes security issues:

View file

@ -1,20 +1,20 @@
Fri Apr 12 19:11:29 UTC 2024
Sun Apr 14 18:38:10 UTC 2024
Here is the file list for this directory. If you are using a
mirror site and find missing or extra files in the disk
subdirectories, please have the archive administrator refresh
the mirror.
drwxr-xr-x 12 root root 4096 2024-04-12 19:08 .
drwxr-xr-x 12 root root 4096 2024-04-14 18:35 .
-rw-r--r-- 1 root root 5767 2022-02-02 22:44 ./ANNOUNCE.15.0
-rw-r--r-- 1 root root 16609 2022-03-30 19:03 ./CHANGES_AND_HINTS.TXT
-rw-r--r-- 1 root root 1230295 2024-04-08 18:47 ./CHECKSUMS.md5
-rw-r--r-- 1 root root 195 2024-04-08 18:47 ./CHECKSUMS.md5.asc
-rw-r--r-- 1 root root 1230295 2024-04-12 19:11 ./CHECKSUMS.md5
-rw-r--r-- 1 root root 195 2024-04-12 19:11 ./CHECKSUMS.md5.asc
-rw-r--r-- 1 root root 17976 1994-06-10 02:28 ./COPYING
-rw-r--r-- 1 root root 35147 2007-06-30 04:21 ./COPYING3
-rw-r--r-- 1 root root 19573 2016-06-23 20:08 ./COPYRIGHT.TXT
-rw-r--r-- 1 root root 616 2006-10-02 04:37 ./CRYPTO_NOTICE.TXT
-rw-r--r-- 1 root root 2109878 2024-04-12 19:08 ./ChangeLog.txt
-rw-r--r-- 1 root root 2110525 2024-04-14 18:35 ./ChangeLog.txt
drwxr-xr-x 3 root root 4096 2013-03-20 22:17 ./EFI
drwxr-xr-x 2 root root 4096 2022-02-02 08:21 ./EFI/BOOT
-rw-r--r-- 1 root root 1187840 2021-06-15 19:16 ./EFI/BOOT/bootx64.efi
@ -25,7 +25,7 @@ drwxr-xr-x 2 root root 4096 2022-02-02 08:21 ./EFI/BOOT
-rwxr-xr-x 1 root root 2504 2019-07-05 18:54 ./EFI/BOOT/make-grub.sh
-rw-r--r-- 1 root root 10722 2013-09-21 19:02 ./EFI/BOOT/osdetect.cfg
-rw-r--r-- 1 root root 1273 2013-08-12 21:08 ./EFI/BOOT/tools.cfg
-rw-r--r-- 1 root root 1607058 2024-04-08 18:47 ./FILELIST.TXT
-rw-r--r-- 1 root root 1607058 2024-04-12 19:11 ./FILELIST.TXT
-rw-r--r-- 1 root root 1572 2012-08-29 18:27 ./GPG-KEY
-rw-r--r-- 1 root root 864745 2022-02-02 08:25 ./PACKAGES.TXT
-rw-r--r-- 1 root root 8034 2022-02-02 03:36 ./README.TXT
@ -832,13 +832,13 @@ drwxr-xr-x 2 root root 4096 2022-12-17 19:52 ./pasture/source/samba
-rw-r--r-- 1 root root 7921 2018-04-29 17:31 ./pasture/source/samba/smb.conf.default
-rw-r--r-- 1 root root 7933 2018-01-14 20:41 ./pasture/source/samba/smb.conf.default.orig
-rw-r--r-- 1 root root 536 2017-03-23 19:18 ./pasture/source/samba/smb.conf.diff.gz
drwxr-xr-x 4 root root 4096 2024-04-08 18:47 ./patches
-rw-r--r-- 1 root root 111814 2024-04-08 18:47 ./patches/CHECKSUMS.md5
-rw-r--r-- 1 root root 195 2024-04-08 18:47 ./patches/CHECKSUMS.md5.asc
-rw-r--r-- 1 root root 152487 2024-04-08 18:47 ./patches/FILE_LIST
-rw-r--r-- 1 root root 15366994 2024-04-08 18:47 ./patches/MANIFEST.bz2
-rw-r--r-- 1 root root 78327 2024-04-08 18:47 ./patches/PACKAGES.TXT
drwxr-xr-x 5 root root 32768 2024-04-08 18:47 ./patches/packages
drwxr-xr-x 4 root root 4096 2024-04-14 18:38 ./patches
-rw-r--r-- 1 root root 112427 2024-04-14 18:38 ./patches/CHECKSUMS.md5
-rw-r--r-- 1 root root 195 2024-04-14 18:38 ./patches/CHECKSUMS.md5.asc
-rw-r--r-- 1 root root 153328 2024-04-14 18:38 ./patches/FILE_LIST
-rw-r--r-- 1 root root 15361955 2024-04-14 18:38 ./patches/MANIFEST.bz2
-rw-r--r-- 1 root root 78878 2024-04-14 18:38 ./patches/PACKAGES.TXT
drwxr-xr-x 5 root root 32768 2024-04-14 18:37 ./patches/packages
-rw-r--r-- 1 root root 360 2023-09-26 19:28 ./patches/packages/Cython-0.29.36-x86_64-1_slack15.0.txt
-rw-r--r-- 1 root root 2389564 2023-09-26 19:28 ./patches/packages/Cython-0.29.36-x86_64-1_slack15.0.txz
-rw-r--r-- 1 root root 163 2023-09-26 19:28 ./patches/packages/Cython-0.29.36-x86_64-1_slack15.0.txz.asc
@ -959,6 +959,9 @@ drwxr-xr-x 5 root root 32768 2024-04-08 18:47 ./patches/packages
-rw-r--r-- 1 root root 532 2023-06-14 18:09 ./patches/packages/ksh93-1.0.6-x86_64-1_slack15.0.txt
-rw-r--r-- 1 root root 844160 2023-06-14 18:09 ./patches/packages/ksh93-1.0.6-x86_64-1_slack15.0.txz
-rw-r--r-- 1 root root 163 2023-06-14 18:09 ./patches/packages/ksh93-1.0.6-x86_64-1_slack15.0.txz.asc
-rw-r--r-- 1 root root 386 2024-04-14 18:25 ./patches/packages/less-653-x86_64-1_slack15.0.txt
-rw-r--r-- 1 root root 153784 2024-04-14 18:25 ./patches/packages/less-653-x86_64-1_slack15.0.txz
-rw-r--r-- 1 root root 195 2024-04-14 18:25 ./patches/packages/less-653-x86_64-1_slack15.0.txz.asc
-rw-r--r-- 1 root root 305 2023-10-03 19:39 ./patches/packages/libX11-1.8.7-x86_64-1_slack15.0.txt
-rw-r--r-- 1 root root 2570228 2023-10-03 19:39 ./patches/packages/libX11-1.8.7-x86_64-1_slack15.0.txz
-rw-r--r-- 1 root root 163 2023-10-03 19:39 ./patches/packages/libX11-1.8.7-x86_64-1_slack15.0.txz.asc
@ -1220,7 +1223,7 @@ drwxr-xr-x 2 root root 4096 2023-11-21 21:09 ./patches/packages/old-linux
-rw-r--r-- 1 root root 463 2023-04-05 18:16 ./patches/packages/zstd-1.5.5-x86_64-1_slack15.0.txt
-rw-r--r-- 1 root root 459652 2023-04-05 18:16 ./patches/packages/zstd-1.5.5-x86_64-1_slack15.0.txz
-rw-r--r-- 1 root root 163 2023-04-05 18:16 ./patches/packages/zstd-1.5.5-x86_64-1_slack15.0.txz.asc
drwxr-xr-x 111 root root 4096 2024-04-08 18:34 ./patches/source
drwxr-xr-x 112 root root 4096 2024-04-14 18:28 ./patches/source
drwxr-xr-x 2 root root 4096 2023-09-26 19:22 ./patches/source/Cython
-rw-r--r-- 1 root root 1623580 2023-07-04 19:24 ./patches/source/Cython/Cython-0.29.36.tar.lz
-rwxr-xr-x 1 root root 3041 2023-09-26 19:23 ./patches/source/Cython/Cython.SlackBuild
@ -1557,6 +1560,13 @@ drwxr-xr-x 2 root root 4096 2023-06-14 18:07 ./patches/source/ksh93
-rw-r--r-- 1 root root 1033 2023-06-07 18:35 ./patches/source/ksh93/ksh93-functions.sh
-rwxr-xr-x 1 root root 6635 2023-06-07 18:52 ./patches/source/ksh93/ksh93.SlackBuild
-rw-r--r-- 1 root root 985 2021-11-12 18:46 ./patches/source/ksh93/slack-desc
drwxr-xr-x 2 root root 4096 2024-04-14 18:20 ./patches/source/less
-rw-r--r-- 1 root root 1789 2024-04-14 18:19 ./patches/source/less/007521ac3c95bc76.patch
-rw-r--r-- 1 root root 511777 2024-03-20 18:12 ./patches/source/less/less-653.tar.lz
-rwxr-xr-x 1 root root 4509 2024-04-14 18:25 ./patches/source/less/less.SlackBuild
-rw-r--r-- 1 root root 69 2022-11-24 20:32 ./patches/source/less/less.url
-rw-r--r-- 1 root root 1383 2024-04-12 17:10 ./patches/source/less/lesspipe.sh.gz
-rw-r--r-- 1 root root 838 2018-02-27 06:13 ./patches/source/less/slack-desc
drwxr-xr-x 10 root root 4096 2016-10-26 20:10 ./patches/source/libX11
-rw-r--r-- 1 root root 257 2015-08-19 06:05 ./patches/source/libX11/arch.use.flags
drwxr-xr-x 2 root root 4096 2016-10-26 20:10 ./patches/source/libX11/build

View file

@ -0,0 +1,11 @@
less: less (file pager)
less:
less: Less is a paginator similar to more (1), but which allows backward
less: movement in the file as well as forward movement. Also, less does not
less: have to read the entire input file before starting, so with large
less: input files it starts up faster than text editors like vi (1).
less:
less: Less was written by Mark Nudelman.
less:
less:
less:

View file

@ -0,0 +1,73 @@
From 007521ac3c95bc76e3d59c6dbfe75d06c8075c33 Mon Sep 17 00:00:00 2001
From: Mark Nudelman <markn@greenwoodsoftware.com>
Date: Thu, 11 Apr 2024 17:49:48 -0700
Subject: [PATCH] Fix bug when viewing a file whose name contains a newline.
---
filename.c | 31 +++++++++++++++++++++++++------
1 file changed, 25 insertions(+), 6 deletions(-)
diff --git a/filename.c b/filename.c
index f90e0e82..a52c6354 100644
--- a/filename.c
+++ b/filename.c
@@ -127,11 +127,20 @@ static constant char * metachars(void)
/*
* Is this a shell metacharacter?
*/
-static int metachar(char c)
+static lbool metachar(char c)
{
return (strchr(metachars(), c) != NULL);
}
+/*
+ * Must use quotes rather than escape char for this metachar?
+ */
+static lbool must_quote(char c)
+{
+ /* {{ Maybe the set of must_quote chars should be configurable? }} */
+ return (c == '\n');
+}
+
/*
* Insert a backslash before each metacharacter in a string.
*/
@@ -164,6 +173,9 @@ public char * shell_quoten(constant char *s, size_t slen)
* doesn't support escape chars. Use quotes.
*/
use_quotes = TRUE;
+ } else if (must_quote(*p))
+ {
+ len += 3; /* open quote + char + close quote */
} else
{
/*
@@ -194,15 +206,22 @@ public char * shell_quoten(constant char *s, size_t slen)
constant char *es = s + slen;
while (s < es)
{
- if (metachar(*s))
+ if (!metachar(*s))
{
- /*
- * Add the escape char.
- */
+ *np++ = *s++;
+ } else if (must_quote(*s))
+ {
+ /* Surround the char with quotes. */
+ *np++ = openquote;
+ *np++ = *s++;
+ *np++ = closequote;
+ } else
+ {
+ /* Insert an escape char before the char. */
strcpy(np, esc);
np += esclen;
+ *np++ = *s++;
}
- *np++ = *s++;
}
*np = '\0';
}

View file

@ -0,0 +1,154 @@
#!/bin/bash
# Copyright 2005-2024 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=less
VERSION=${VERSION:-$(echo less-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
BUILD=${BUILD:-1_slack15.0}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) export ARCH=i586 ;;
arm*) export ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs:
*) export ARCH=$( uname -m ) ;;
esac
fi
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
# the name of the created package would be, and then exit. This information
# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PKGNAM-$VERSION-$ARCH-$BUILD.txz"
exit 0
fi
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
elif [ "$ARCH" = "arm" ]; then
SLKCFLAGS="-O2 -march=armv4 -mtune=xscale"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "armel" ]; then
SLKCFLAGS="-O2 -march=armv4t"
LIBDIRSUFFIX=""
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
TMP=${TMP:-/tmp}
PKG=$TMP/package-less
rm -rf $PKG
mkdir -p $TMP $PKG
cd $TMP
rm -rf less-$VERSION
tar xvf $CWD/less-$VERSION.tar.?z || exit 1
cd less-$VERSION || exit 1
# Fix path in manpage:
if [ -r less.nro ]; then
sed -i "s,/usr/local/etc,/etc,g" less.nro
fi
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \+ -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \+
# newline in filenames patch for CVE-2024-32487:
cat $CWD/007521ac3c95bc76.patch | patch -p1 --verbose || exit 1
if [ ! -r configure ]; then
if [ -x ./autogen.sh ]; then
NOCONFIGURE=1 ./autogen.sh
else
autoreconf -vif
fi
fi
# Prep needed if using the git archive:
for file in funcs.h less.nro lesskey.nro lessecho.nro ; do
if [ ! -r $file ]; then
make -f Makefile.aut $file
fi
done
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/man || exit 1
make $NUMJOBS || make || exit 1
make install DESTDIR=$PKG || exit 1
zcat $CWD/lesspipe.sh.gz > $PKG/usr/bin/lesspipe.sh
chmod 755 $PKG/usr/bin/lesspipe.sh
# Compress and link manpages, if any:
if [ -d $PKG/usr/man ]; then
( cd $PKG/usr/man
for manpagedir in $(find . -type d -name "man*") ; do
( cd $manpagedir
for eachpage in $( find . -type l -maxdepth 1 | grep -v '\.gz$') ; do
ln -s $( readlink $eachpage ).gz $eachpage.gz
rm $eachpage
done
gzip -9 *.?
)
done
)
fi
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
)
mkdir -p $PKG/usr/doc/less-$VERSION
cp -a \
COPYING* LICENSE README NEWS \
$PKG/usr/doc/less-$VERSION
mkdir -p $PKG/usr/man/man1
for page in less.nro lesskey.nro ; do
cat $page | gzip -9c > $PKG/usr/man/man1/`basename $page .nro`.1.gz
done
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
# Build the package:
cd $PKG
/sbin/makepkg -l y -c n $TMP/less-$VERSION-$ARCH-$BUILD.txz

View file

@ -0,0 +1,2 @@
#http://www.greenwoodsoftware.com/less/
https://github.com/gwsw/less

View file

@ -0,0 +1,70 @@
#!/bin/sh
#
# Copyright 1997, 1998, 1999, 2000 Patrick Volkerding, Moorhead, MN, USA
# Copyright 2001, 2002 Slackware Linux, Inc, Concord, CA, USA
# Copyright 2006, 2009, 2017, 2021 Patrick Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# This is a preprocessor for 'less'. It is used when this environment
# variable is set: LESSOPEN="|lesspipe.sh %s"
lesspipe() {
case "$1" in
*.tar) tar tvvf "$1" 2>/dev/null ;;
*.tar.lzma ) lzma -dc "$1" 2> /dev/null | tar tvvf - 2> /dev/null ;;
*.tgz | *.tar.gz | *.tar.Z | *.tar.z | *.tar.bz2 | *.tbz ) tar tvvf "$1" 2>/dev/null ;;
*.tlz | *.tar.lz ) lzip -dc "$1" 2> /dev/null | tar tvvf - 2> /dev/null ;;
*.txz | *.tar.xz ) xz -dc "$1" 2> /dev/null | tar tvvf - 2> /dev/null ;;
*.tzst | *.tzz | *.tar.zst | *.tar.zstd ) tar tvvf "$1" 2> /dev/null ;;
*.zip) unzip -l "$1" 2>/dev/null ;;
*.rpm) rpm -qpvl "$1" 2>/dev/null ;;
*.rar) # check if rar is installed first
if which rar 1> /dev/null ; then
`which rar` t "$1"
fi ;;
*.1|*.2|*.3|*.4|*.5|*.6|*.7|*.8|*.9|*.n|*.man) # *roff src?
if file -L "$1" | grep roff 1> /dev/null ; then
nroff -S -mandoc "$1"
fi ;;
*.1.gz|*.2.gz|*.3.gz|*.4.gz|*.5.gz|*.6.gz|*.7.gz|*.8.gz|*.9.gz|*.n.gz|*.man.gz) # compressed *roff src?
if gzip -dc "$1" | file - | grep roff 1> /dev/null ; then
gzip -dc "$1" | nroff -S -mandoc -
else gzip -dc "$1" 2>/dev/null
fi ;;
*.1.bz2|*.2.bz2|*.3.bz2|*.4.bz2|*.5.bz2|*.6.bz2|*.7.bz2|*.8.bz2|*.9.bz2|*.n.bz2|*.man.bz2) # compressed *roff src?
if bzip2 -dc "$1" | file - | grep roff 1> /dev/null ; then
bzip2 -dc "$1" | nroff -S -mandoc -
fi ;;
*.gz) gzip -dc "$1" 2>/dev/null ;;
*.bz2) bzip2 -dc "$1" 2>/dev/null ;;
*.lzma) lzma -dc "$1" 2>/dev/null ;;
*.xz) xz -dc "$1" 2>/dev/null ;;
# *) FILE=`file -L "$1"` ; # Check to see if binary, if so -- view with 'strings'
# FILE1=`echo $FILE | cut -d ' ' -f 2`
# FILE2=`echo $FILE | cut -d ' ' -f 3`
# if [ "$FILE1" = "Linux/i386" -o "$FILE2" = "Linux/i386" \
# -o "$FILE1" = "ELF" -o "$FILE2" = "ELF" ]; then
# strings "$1"
# fi ;;
esac
}
lesspipe "$1"

View file

@ -0,0 +1,19 @@
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'.
|-----handy-ruler------------------------------------------------------|
less: less (file pager)
less:
less: Less is a paginator similar to more (1), but which allows backward
less: movement in the file as well as forward movement. Also, less does not
less: have to read the entire input file before starting, so with large
less: input files it starts up faster than text editors like vi (1).
less:
less: Less was written by Mark Nudelman.
less:
less:
less:

View file

@ -1452,6 +1452,7 @@ gzip ./patches/source/dnsmasq/doinst.sh
gzip ./patches/source/dnsmasq/dnsmasq.libidn2.diff
gzip ./patches/source/cyrus-sasl/rc.saslauthd
gzip ./patches/source/cyrus-sasl/doinst.sh
gzip ./patches/source/less/lesspipe.sh
gzip ./patches/source/qt5/patches/qt5-qtbase-gcc11.patch
gzip ./patches/source/qt5/patches/qt5-qtwebsockets-gcc11.patch
gzip ./patches/source/qt5/patches/qt5.qtbase_cmake_isystem_includes.patch