diff options
author | Cem Keylan <cem@ckyln.com> | 2021-08-10 22:25:38 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2021-08-10 22:25:38 +0300 |
commit | 05a8b7534ba87e24be6c3a98b3c0efafd38bf7a1 (patch) | |
tree | 75cd7dafad404a5de73e111a9a6bf4c3958d82ce /core/busybox/patches/less_t.patch | |
parent | a8cdac4d77264904d8c438af7cde8de3c03be6de (diff) | |
download | repository-05a8b7534ba87e24be6c3a98b3c0efafd38bf7a1.tar.gz |
busybox: add patch to accept and ignore 'less -T'
Diffstat (limited to 'core/busybox/patches/less_t.patch')
-rw-r--r-- | core/busybox/patches/less_t.patch | 28 |
1 files changed, 28 insertions, 0 deletions
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; |