From 05a8b7534ba87e24be6c3a98b3c0efafd38bf7a1 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Tue, 10 Aug 2021 22:25:38 +0300 Subject: busybox: add patch to accept and ignore 'less -T' --- core/busybox/checksums | 1 + core/busybox/patches/less_t.patch | 28 ++++++++++++++++++++++++++++ core/busybox/sources | 1 + core/busybox/version | 2 +- 4 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 core/busybox/patches/less_t.patch (limited to 'core') diff --git a/core/busybox/checksums b/core/busybox/checksums index 202fc35c..102caeee 100644 --- a/core/busybox/checksums +++ b/core/busybox/checksums @@ -16,3 +16,4 @@ e31be17d2e058c0bde645f12b38dd6d5a22f8751204304a2df994fc7e523ae9c modprobe-kerne f0e17fefc0af6b10205d72b242b6ef7481a58ff07726c62890ebc5893b96a396 install-fix-chown.patch 68e0c7d5e96902d3b890e89d9b018ae11d53ed3104bfedd624a1485df58b11cb print-unicode.patch 6d50ac2d96fcdbf140cd70c48bc4b661c94d634189e6ae08ecacfc7d91f6efe8 libressl.patch +45b512a1740b6eb32aeb7a32b4e7ea551564947176461975cfd8d02da8ce9c09 less_t.patch diff --git a/core/busybox/patches/less_t.patch b/core/busybox/patches/less_t.patch new file mode 100644 index 00000000..f8555db2 --- /dev/null +++ b/core/busybox/patches/less_t.patch @@ -0,0 +1,28 @@ +Accept and ignore the -T flag for compatibility. +--- busybox/miscutils/less.c.orig 2021-08-10 22:16:57.493134340 +0300 ++++ busybox/miscutils/less.c 2021-08-10 22:18:15.421458884 +0300 +@@ -179,6 +179,7 @@ + FLAG_F = 1 << 6, + FLAG_S = (1 << 7) * ENABLE_FEATURE_LESS_TRUNCATE, + FLAG_R = (1 << 8) * ENABLE_FEATURE_LESS_RAW, ++ FLAG_T = 1 << 9, + /* hijack command line options variable for internal state vars */ + LESS_STATE_MATCH_BACKWARDS = 1 << 15, + }; +@@ -1807,6 +1808,7 @@ + int less_main(int argc, char **argv) + { + char *tty_name; ++ char *str_ignored; + int tty_fd; + + INIT_G(); +@@ -1820,7 +1822,7 @@ + getopt32(argv, "EMmN~IF" + IF_FEATURE_LESS_TRUNCATE("S") + IF_FEATURE_LESS_RAW("R") +- /*ignored:*/"s" ++ /*ignored:*/"sT:", &str_ignored + ); + argv += optind; + num_files = argc - optind; diff --git a/core/busybox/sources b/core/busybox/sources index cfaa3de6..15006c79 100644 --- a/core/busybox/sources +++ b/core/busybox/sources @@ -16,3 +16,4 @@ patches/adduser-no-setgid.patch patches patches/install-fix-chown.patch patches patches/print-unicode.patch patches patches/libressl.patch patches +patches/less_t.patch patches diff --git a/core/busybox/version b/core/busybox/version index 741d8133..fd495bf1 100644 --- a/core/busybox/version +++ b/core/busybox/version @@ -1 +1 @@ -1.33.1 1 +1.33.1 2 -- cgit v1.2.3