diff --git a/0019-commands-fix-coredump-caused-by-missing.patch b/0019-commands-fix-coredump-caused-by-missing.patch new file mode 100644 index 0000000000000000000000000000000000000000..67d4aaf5487c53be76d2ae4e87296979339924d5 --- /dev/null +++ b/0019-commands-fix-coredump-caused-by-missing.patch @@ -0,0 +1,32 @@ +From fffc7a524a43a221bb6ec9c0a1017027f62d7021 Mon Sep 17 00:00:00 2001 +From: wguanghao +Date: Mon, 6 Nov 2023 16:55:08 +0800 +Subject: [PATCH] commands: fix coredump caused by missing +corresponding for %s + +When printing information, the %s formatting symbol was +used without specifying the corresponding argument, +resulting in a coredump. + + +Signed-by-off: Wu Guanghao +--- + tools/commands.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tools/commands.c b/tools/commands.c +index 4c71ae1..9932f30 100644 +--- a/tools/commands.c ++++ b/tools/commands.c +@@ -254,7 +254,7 @@ help(struct lib_context *lc, int arg) + "\t[--size [0-9]...[kKgG][bB]]\n" + "\t[--str[i[de]] [0-9]...[kK][bB]]\n" + "\t{--disk[s] \"device-path[, device-path...\"}\n", c); +- log_print(lc, "%s\t{-x|--remove RAID-set} \n"); ++ log_print(lc, "%s\t{-x|--remove RAID-set} \n", c); + log_print(lc, "%s\t{-R|--rebuild} RAID-set [drive_name]\n", c); + log_print(lc, "%s\t[{-f|--format FORMAT}]\n" + "\t{-S|--spare [RAID-set]} \n" +-- +2.33.0 + diff --git a/dmraid.spec b/dmraid.spec index 333c1a7deb18af1b7d63e112a7ecb18a484a3e2c..85cccafce768bcd61efb3cc45dffb7c81a6378c0 100644 --- a/dmraid.spec +++ b/dmraid.spec @@ -9,7 +9,7 @@ Summary: dmraid (Device-mapper RAID tool and library) Name: dmraid Version: 1.0.0.rc16 -Release: 54 +Release: 55 License: GPLv2+ Group: System Environment/Base URL: http://people.redhat.com/heinzm/sw/dmraid @@ -47,6 +47,7 @@ Patch15: 0015-dmraid-fix-errors-and-warnings-triggered-by-CFLAGS.patch Patch16: 0016-dmraid-fix-destdir.patch Patch17: 0017-dmraid-fix-missing-destdir.patch Patch18: 0018-dmraid-fix-so-flags.patch +Patch19: 0019-commands-fix-coredump-caused-by-missing.patch %description DMRAID supports RAID device discovery, RAID set activation, creation, @@ -151,6 +152,9 @@ rm -rf $RPM_BUILD_ROOT %ghost /var/cache/logwatch/dmeventd/syslogpattern.txt %changelog +* Tue Jun 29 2021 zhouwenpei - 1.0.0.rc16-55 +- fix coredump caused by missing corresponding parameter for %s + * Tue Jun 29 2021 zhouwenpei - 1.0.0.rc16-54 - add buildrequire gcc.