aboutsummaryrefslogtreecommitdiff
path: root/core/busybox
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2021-08-10 22:25:38 +0300
committerCem Keylan <cem@ckyln.com>2021-08-10 22:25:38 +0300
commit05a8b7534ba87e24be6c3a98b3c0efafd38bf7a1 (patch)
tree75cd7dafad404a5de73e111a9a6bf4c3958d82ce /core/busybox
parenta8cdac4d77264904d8c438af7cde8de3c03be6de (diff)
downloadrepository-05a8b7534ba87e24be6c3a98b3c0efafd38bf7a1.tar.gz
busybox: add patch to accept and ignore 'less -T'
Diffstat (limited to 'core/busybox')
-rw-r--r--core/busybox/checksums1
-rw-r--r--core/busybox/patches/less_t.patch28
-rw-r--r--core/busybox/sources1
-rw-r--r--core/busybox/version2
4 files changed, 31 insertions, 1 deletions
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