From 7bb3addc82a435ba306c23a2be2a937cb4824a39 Mon Sep 17 00:00:00 2001 From: fortunate-lee Date: Tue, 15 Apr 2025 15:47:24 +0800 Subject: [PATCH] fix broken command command key --- backport-fix-broken-command-command-key.patch | 13 +++++++++++++ util-linux.spec | 9 ++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 backport-fix-broken-command-command-key.patch diff --git a/backport-fix-broken-command-command-key.patch b/backport-fix-broken-command-command-key.patch new file mode 100644 index 0000000..62b9b60 --- /dev/null +++ b/backport-fix-broken-command-command-key.patch @@ -0,0 +1,13 @@ +diff -Naur util-linux-2.39.1-bak/text-utils/more.c util-linux-2.39.1/text-utils/more.c +--- util-linux-2.39.1-bak/text-utils/more.c 2025-04-15 15:39:55.780183129 +0800 ++++ util-linux-2.39.1/text-utils/more.c 2025-04-15 15:41:43.810656498 +0800 +@@ -861,6 +861,9 @@ + case 'p': + cmd.key = more_kc_previous_file; + return cmd; ++ case '!': ++ cmd.key = more_kc_run_shell; ++ return cmd; + default: + cmd.key = more_kc_unknown_command; + return cmd; diff --git a/util-linux.spec b/util-linux.spec index 3dc280c..f4d9bfb 100644 --- a/util-linux.spec +++ b/util-linux.spec @@ -3,7 +3,7 @@ Name: util-linux Version: 2.39.1 -Release: 20 +Release: 21 Summary: A random collection of Linux utilities License: GPLv2 and GPLv2+ and LGPLv2+ and BSD with advertising and Public Domain URL: https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git @@ -108,6 +108,7 @@ Patch9002: sfdisk-fix-crash-casued-by-out-of-bounds-access.patch Patch9003: add-new-gmo-file.patch Patch9004: mount-fix-use-option-owner-mount-failed.patch Patch9005: mkfs.bfs-fix-memory-leaks-and-weak-code.patch +Patch9006: backport-fix-broken-command-command-key.patch BuildRequires: audit-libs-devel >= 1.0.6 gettext-devel libselinux-devel ncurses-devel pam-devel zlib-devel popt-devel BuildRequires: libutempter-devel systemd-devel systemd libuser-devel libcap-ng-devel python3-devel gcc autoconf automake @@ -484,6 +485,12 @@ fi %endif %changelog +* Tue Apr 15 2025 lijian - 2.39.1-21 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC: fix broken ':!command' command key + * Thu Mar 27 2025 zhangting - 2.39.1-20 - Type:bugfix - ID:NA -- Gitee