From d8167f43c13a9e5d86f957ceb7797755b67a3147 Mon Sep 17 00:00:00 2001 From: liupei Date: Sat, 23 Mar 2024 17:39:35 +0800 Subject: [PATCH] fix typo in error message --- drbd.spec | 8 +++++++- fix-typo-in-error-message.patch | 25 +++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 fix-typo-in-error-message.patch diff --git a/drbd.spec b/drbd.spec index 5649bec..bdf5cbb 100644 --- a/drbd.spec +++ b/drbd.spec @@ -1,7 +1,7 @@ Name: drbd Summary: DRBD user-land tools and scripts Version: 9.27.0 -Release: 4 +Release: 5 Source0: http://www.linbit.com/downloads/%{name}/utils/%{name}-utils-%{version}.tar.gz Patch0: drbd-utils-9.12.2-disable_xsltproc_network_read.patch Patch1: drbd-utils-9.15.0-make_configure-workaround.patch @@ -11,6 +11,8 @@ Patch3: Update-scripts-drbd-to-fix-no-such-file-bug.patch # https://github.com/LINBIT/drbd-utils/commit/0a825f1c859000b2143907b43a191e6dedb633f8 Patch4: events2-set-may_promote-no-promotion_score-0.patch # https://github.com/LINBIT/drbd-utils/commit/49a094b0bd71f76ca4917a852b64719a4ece91fb +Patch5: fix-typo-in-error-message.patch +# https://github.com/LINBIT/drbd-utils/commit/3404be080bea2553088a8481475a548b008adba1 License: GPL-2.0-or-later ExclusiveOS: linux @@ -50,6 +52,7 @@ This is a virtual package, installing the full user-land suite. %patch 2 -p1 %patch 3 -p1 %patch 4 -p1 +%patch 5 -p1 %build %configure \ @@ -225,6 +228,9 @@ management utility. %systemd_preun drbd.service %changelog +* Sat Mar 23 2024 liupei - 9.27.0-5 +- fix typo in error message + * Thu Mar 21 2024 liupei - 9.27.0-4 - events2: set may_promote:no promotion_score:0 while force-io-failure:yes diff --git a/fix-typo-in-error-message.patch b/fix-typo-in-error-message.patch new file mode 100644 index 0000000..f9305b1 --- /dev/null +++ b/fix-typo-in-error-message.patch @@ -0,0 +1,25 @@ +From 3404be080bea2553088a8481475a548b008adba1 Mon Sep 17 00:00:00 2001 +From: Lars Ellenberg +Date: Fri, 22 Dec 2023 23:02:52 +0000 +Subject: [PATCH 04/10] fix typo in error message + +--- + user/shared/shared_tool.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/user/shared/shared_tool.c b/user/shared/shared_tool.c +index 6fcb8b46..a816685c 100644 +--- a/user/shared/shared_tool.c ++++ b/user/shared/shared_tool.c +@@ -548,7 +548,7 @@ m_strtoll(const char *s, const char def_unit) + fprintf(stderr, "%s: out of range\n", s); + exit(20); + default: +- fprintf(stderr, "m_stroll() is confused\n"); ++ fprintf(stderr, "m_strtoll() is confused\n"); + exit(20); + } + } +-- +2.33.1.windows.1 + -- Gitee